OpenCloudOS-Kernel/drivers/target/tcm_fc
Mark Rustad 3cc5d2a6b9 tcm_fc: Fix crash seen with aborts and large reads
This patch fixes a crash seen when large reads have their exchange
aborted by either timing out or being reset. Because the exchange
abort results in the seq pointer being set to NULL, because the
sequence is no longer valid, it must not be dereferenced. This
patch changes the function ft_get_task_tag to return ~0 if it is
unable to get the tag for this reason. Because the get_task_tag
interface provides no means of returning an error, this seems
like the best way to fix this issue at the moment.

Signed-off-by: Mark Rustad <mark.d.rustad@intel.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
2012-07-14 15:17:29 -07:00
..
Kconfig [SCSI] tcm_fc: Adding FC_FC4 provider (tcm_fc) for FCoE target (TCM - target core) support 2011-05-17 10:52:46 +04:00
Makefile tcm_fc: Makefile cleanups 2011-07-22 09:37:47 +00:00
tcm_fc.h tcm_fc: Add abort flag for gracefully handling exchange timeout 2012-04-06 18:56:43 -07:00
tfc_cmd.c tcm_fc: Fix crash seen with aborts and large reads 2012-07-14 15:17:29 -07:00
tfc_conf.c tcm_fc: Remove use of transport_do_task_sg_chain() 2012-04-14 17:40:31 -07:00
tfc_io.c tcm_fc: Remove use of transport_do_task_sg_chain() 2012-04-14 17:40:31 -07:00
tfc_sess.c tcm_fc: Resolve suspicious RCU usage warnings 2012-07-06 12:52:09 -07:00