scsi: target/core: Avoid that a kernel oops is triggered when COMPARE AND WRITE fails
authorBart Van Assche <bvanassche@acm.org>
Tue, 6 Nov 2018 00:44:59 +0000 (16:44 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 6 Nov 2018 03:16:00 +0000 (22:16 -0500)
commit5841734fa6f997e57e8c29cbb6409bd74a6949e8
treeddd5f5835194c858867336b66ea0e0543f89ed25
parent651022382c7f8da46cb4872a545ee1da6d097d2a
scsi: target/core: Avoid that a kernel oops is triggered when COMPARE AND WRITE fails

Fixes: aa73237dcb2d ("scsi: target/core: Always call transport_complete_callback() upon failure")
Reviewed-by: David Disseldorp <ddiss@suse.de>
Cc: Nicholas Bellinger <nab@linux-iscsi.org>
Cc: Mike Christie <mchristi@redhat.com>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/target/target_core_transport.c