scsi: tcmu: fix use after free
authorXiubo Li <xiubli@redhat.com>
Tue, 22 Jan 2019 10:10:51 +0000 (18:10 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 23 Jan 2019 01:54:00 +0000 (20:54 -0500)
commit40d883b091758472c79b81fa1c0e0347e24a9cff
treead7689cc55e8afca8e011ca842958d1da2804a10
parentfe35a40e675473eb65f2f5462b82770f324b5689
scsi: tcmu: fix use after free

Fixes: a94a2572b977 ("scsi: tcmu: avoid cmd/qfull timers updated whenever a new cmd comes")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Mike Christie <mchristi@redhat.com>
Signed-off-by: Xiubo Li <xiubli@redhat.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_user.c