target/iscsi: Fix a race condition in iscsit_add_reject_from_cmd()
authorBart Van Assche <bart.vanassche@wdc.com>
Tue, 31 Oct 2017 18:03:17 +0000 (11:03 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 4 Nov 2017 22:16:06 +0000 (15:16 -0700)
commitcfe2b621bb18d86e93271febf8c6e37622da2d14
tree1abe89ba7926820e4b7edaf7934933311759ee9a
parente1dfb21f004f403a16539e8a037963b57a25e0ad
target/iscsi: Fix a race condition in iscsit_add_reject_from_cmd()

Avoid that cmd->se_cmd.se_tfo is read after a command has already been
freed.

Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Mike Christie <mchristi@redhat.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target.c