Re: [PATCH v2 1/3] be2iscsi: Fix error return code

2016-08-26 Thread Johannes Thumshirn
On Fri, Aug 26, 2016 at 03:09:06PM +0530, Jitendra Bhivare wrote: > From: Christophe JAILLET > > We know that 'ret' is not an error code because it has been tested a few > lines above. > So, if one of these function fails, 0 will be returned instead of an error >

[PATCH v2 1/3] be2iscsi: Fix error return code

2016-08-26 Thread Jitendra Bhivare
From: Christophe JAILLET We know that 'ret' is not an error code because it has been tested a few lines above. So, if one of these function fails, 0 will be returned instead of an error code. Return -ENOMEM instead. Signed-off-by: Christophe JAILLET