target: Fix incorrect se_cmd assignment in core_tmr_drain_tmr_list
commita1dc5b0de6f3083000c3b990dc319dd842ad7420
authorJoern Engel <joern@logfs.org>
Wed, 26 Oct 2011 05:08:43 +0000 (25 22:08 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:44:38 +0000 (11 09:44 -0800)
tree4f832d734def5ddec453f17712ae9184d407af00
parentedfaaac6ea69b97b993d7a88f027b3d0f8cc2c63
target: Fix incorrect se_cmd assignment in core_tmr_drain_tmr_list

commit 80ccbc8e00f7001d79dd503c2781487906b98611 upstream.

This patch fixes a bug in core_tmr_drain_tmr_list() where drain_tmr_list
was using the wrong se_tmr_req for cmd assignment due to a typo during the
LUN_RESET re-org.  This was resulting in general protection faults while
using the leftover bogus *tmr_p pointer from list_for_each_entry_safe().

Signed-off-by: Joern Engel <joern@logfs.org>
Cc: Joern Engel <joern@logfs.org>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/target/target_core_tmr.c