linux/drivers/target/tcm_fc
Kiran Patil 61db952713 tcm_fc: Fix ft_send_tm LUN lookup OOPs
This patch fixes a bug in ft_send_tm() that was incorrectly calling
ft_get_lun_for_cmd() -> transport_get_lun_for_cmd(), instead of using
transport_get_lun_for_tmr() for the proper struct se_lun lookup
that was triggering an OOPs in the se_cmd->tmr_req failure path.

This patch fixes the issue by re-arranging the codepath where
transport_get_lun_for_tmr() is called after tmr request is allocated and
made it available as part of se_cmd.

It also drops the now unnecessary ft_get_lun_for_cmd() unpacking code, and
uses scsilun_to_int() directly ahead of transport_get_lun_for_cmd() and
transport_get_lun_for_tmr() usage.

Signed-off-by: Patil, Kiran <kiran.patil@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
2011-06-24 00:09:15 +00:00
..
Kconfig
Makefile
tcm_fc.h tcm_fc: Fix ft_send_tm LUN lookup OOPs 2011-06-24 00:09:15 +00:00
tfc_cmd.c tcm_fc: Fix ft_send_tm LUN lookup OOPs 2011-06-24 00:09:15 +00:00
tfc_conf.c
tfc_io.c
tfc_sess.c target: Fix ERR_PTR dereferencing bugs 2011-06-24 00:03:27 +00:00