kernel-fxtec-pro1x/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
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
target_core_alua.h
target_core_configfs.c
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_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_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_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
target_core_xcopy.c
target_core_xcopy.h