Re: [PATCH][next] bcache: Set error return err to -ENOMEM on allocation failure

2021-04-19 Thread Coly Li
On 4/19/21 8:56 PM, Colin King wrote: > From: Colin Ian King > > Currently when ns fails to be allocated the error return path returns > an uninitialized return code in variable 'err'. Fix this by setting > err to -ENOMEM. > > Addresses-Coverity: ("Uninitialized scalar variable") > Fixes: 688330

[PATCH][next] bcache: Set error return err to -ENOMEM on allocation failure

2021-04-19 Thread Colin King
From: Colin Ian King Currently when ns fails to be allocated the error return path returns an uninitialized return code in variable 'err'. Fix this by setting err to -ENOMEM. Addresses-Coverity: ("Uninitialized scalar variable") Fixes: 688330711e9a ("bcache: initialize the nvm pages allocator")