linux/drivers/scsi/be2iscsi
Pan Bian 84a261ff76 scsi: be2iscsi: set errno on error path
Variable ret is reset in the loop, and its value will be 0 during the
second and after repeat of the loop. If pci_alloc_consistent() returns a
NULL pointer then, it will leaves with return value 0. 0 means no error,
which is contrary to the fact. This patches fixes the bug, explicitly
assigning "-ENOMEM" to return variable ret on the path that the call to
pci_alloc_consistent() fails.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188951

Signed-off-by: Pan Bian <bianpan2016@163.com>
Reviewed-by: Jitendra Bhivare <Jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-12-05 17:23:05 -05:00
..
be.h scsi: be2iscsi: Update copyright information 2016-08-23 22:42:44 -04:00
be_cmds.c scsi: be2iscsi: Update copyright information 2016-08-23 22:42:44 -04:00
be_cmds.h scsi: be2iscsi: Update copyright information 2016-08-23 22:42:44 -04:00
be_iscsi.c scsi: be2iscsi: Update copyright information 2016-08-23 22:42:44 -04:00
be_iscsi.h scsi: be2iscsi: Update copyright information 2016-08-23 22:42:44 -04:00
be_main.c scsi: be2iscsi: set errno on error path 2016-12-05 17:23:05 -05:00
be_main.h scsi: be2iscsi: Update the driver version 2016-08-23 22:42:45 -04:00
be_mgmt.c scsi: be2iscsi: Add missing unlock for mbox_lock 2016-08-30 22:26:15 -04:00
be_mgmt.h scsi: be2iscsi: Update copyright information 2016-08-23 22:42:44 -04:00
Kconfig irq_poll: make blk-iopoll available outside the block layer 2015-12-11 11:52:24 -08:00
Makefile be2iscsi: Revert ownership to Emulex 2015-10-27 10:34:18 +09:00