tmp_suning_uos_patched/drivers/target
Mike Christie b815fc12d4 iscsi target: fix oops when adding reject pdu
This fixes a oops due to a double list add when adding a reject PDU for
iscsit_allocate_iovecs allocation failures. The cmd has already been
added to the conn_cmd_list in iscsit_setup_scsi_cmd, so this has us call
iscsit_reject_cmd.

Note that for ERL0 the reject PDU is not actually sent, so this patch
is not completely tested. Just verified we do not oops. The problem is the
add reject functions return -1 which is returned all the way up to
iscsi_target_rx_thread which for ERL0 will drop the connection.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Cc: <stable@vger.kernel.org> # v3.10+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2015-04-10 12:33:55 -07:00
..
iscsi iscsi target: fix oops when adding reject pdu 2015-04-10 12:33:55 -07:00
loopback loop/usb/vhost-scsi/xen-scsiback: Fix use of __transport_register_session 2015-03-19 23:15:14 -07:00
sbp scsi: remove MSG_*_TAG defines 2014-12-04 09:58:33 +01:00
tcm_fc tcm_fc: missing curly braces in ft_invl_hw_context() 2015-03-19 23:26:41 -07:00
Kconfig
Makefile
target_core_alua.c scsi: rename SERVICE_ACTION_IN to SERVICE_ACTION_IN_16 2014-11-24 20:01:40 +01:00
target_core_alua.h
target_core_configfs.c target: Drop left-over internal dev attribute code 2014-12-01 21:36:21 -08:00
target_core_device.c target: Allow userspace to write 1 to attrib/emulate_fua_write 2015-04-01 21:42:51 -07:00
target_core_fabric_configfs.c
target_core_fabric_lib.c
target_core_file.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2015-02-21 13:21:19 -08:00
target_core_file.h
target_core_hba.c target: Move dev_cit to struct se_subsystem_api 2014-12-01 21:35:22 -08:00
target_core_iblock.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2015-02-21 13:21:19 -08:00
target_core_iblock.h
target_core_internal.h target: Add EXPORT_SYMBOL for existing se_dev_set_* 2014-12-01 21:36:02 -08:00
target_core_pr.c Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2015-02-21 13:21:19 -08:00
target_core_pr.h
target_core_pscsi.c target/pscsi: Fix NULL pointer dereference in get_device_type 2015-03-19 23:26:42 -07:00
target_core_pscsi.h
target_core_rd.c target: Drop left-over fabric_max_sectors attribute 2015-01-09 15:22:05 -08:00
target_core_rd.h
target_core_sbc.c target: do not reject FUA CDBs when write cache is enabled but emulate_write_cache is 0 2015-03-19 23:26:46 -07:00
target_core_spc.c target: do not reject FUA CDBs when write cache is enabled but emulate_write_cache is 0 2015-03-19 23:26:46 -07:00
target_core_stat.c
target_core_tmr.c
target_core_tpg.c
target_core_transport.c target: Fix reference leak in target_get_sess_cmd() error path 2015-03-19 23:26:31 -07:00
target_core_ua.c
target_core_ua.h
target_core_user.c netlink: make nlmsg_end() and genlmsg_end() void 2015-01-18 01:03:45 -05:00
target_core_xcopy.c treewide: fix typo in printk and Kconfig 2014-11-20 14:56:11 +01:00
target_core_xcopy.h