diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2016-08-26 12:39:06 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-08-31 05:24:40 +0300 |
commit | deeea8edc746c68d7aa2282322b14be701ec11ee (patch) | |
tree | 1f2de92fb403a095afdc9b0c62f569acdb8532ed /arch | |
parent | 51f9039ffd751dee54fe26609df645bfd128b1d0 (diff) | |
download | linux-deeea8edc746c68d7aa2282322b14be701ec11ee.tar.xz |
scsi: be2iscsi: Fix error return code
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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions