]> www.infradead.org Git - users/jedix/linux-maple.git/commit
scsi: be2iscsi: Fix error return code
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Fri, 26 Aug 2016 09:39:06 +0000 (15:09 +0530)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 8 Mar 2017 00:55:40 +0000 (19:55 -0500)
commitc376d1b46668bf4c264658644f62027b1c7df20e
treec8c69e4a44e8493cf3f3e2ad4ba689d5d8e39b4b
parent3b6ab5cfcb0957fadcb08508919404fab356947e
scsi: be2iscsi: Fix error return code

Orabug: 25655127

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 <christophe.jaillet@wanadoo.fr>
'ret' needs to be set with error code if hba_setup_cid_tbls fails.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Ethan Zhao <ethan.zhao@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
drivers/scsi/be2iscsi/be_main.c