linux/drivers/target
Roland Dreier f100fdf3a9 target: Don't return success from module_init() if setup fails
commit 0d0f9dfb31 upstream.

If the call to core_dev_release_virtual_lun0() fails, then nothing
sets ret to anything other than 0, so even though everything is
torn down and freed, target_core_init_configfs() will seem to succeed
and the module will be loaded.  Fix this by passing the return value
on up the chain.

Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-17 13:14:20 -08:00
..
loopback tcm_loop: Set residual field for SCSI commands 2012-04-02 09:27:11 -07:00
tcm_fc tcm_fc: Resolve suspicious RCU usage warnings 2012-07-16 08:47:49 -07:00
Kconfig
Makefile
target_core_alua.c target: Fix 16-bit target ports for SET TARGET PORT GROUPS emulation 2012-04-02 09:27:12 -07:00
target_core_alua.h
target_core_cdb.c target: Don't set WBUS16 or SYNC bits in INQUIRY response 2012-04-02 09:27:12 -07:00
target_core_configfs.c target: Don't return success from module_init() if setup fails 2012-11-17 13:14:20 -08:00
target_core_device.c
target_core_fabric_configfs.c
target_core_fabric_lib.c
target_core_file.c
target_core_file.h
target_core_hba.c
target_core_hba.h
target_core_iblock.c
target_core_iblock.h
target_core_pr.c target: Allow PERSISTENT RESERVE IN for non-reservation holder 2012-02-13 11:06:11 -08:00
target_core_pr.h
target_core_pscsi.c
target_core_pscsi.h
target_core_rd.c
target_core_rd.h
target_core_scdb.c
target_core_scdb.h
target_core_stat.c
target_core_stat.h
target_core_tmr.c
target_core_tpg.c
target_core_transport.c target: Fix ->data_length re-assignment bug with SCSI overflow 2012-10-02 09:47:23 -07:00
target_core_ua.c
target_core_ua.h