]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 17 Jan 2018 17:55:37 +0000 (12:55 -0500)
commit36376ec8e77b9e537b29dbb8a1497968c4b25e95
treeca9cfec2ac1369359ff0bdb614fcdf7403aaf5ca
parentea51d62d96c1ff9c39614fb855aca7d2fc4c68fa
target/iscsi: Fix a race condition in iscsit_add_reject_from_cmd()

[ Upstream commit cfe2b621bb18d86e93271febf8c6e37622da2d14 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
drivers/target/iscsi/iscsi_target.c