SCSI: Free resources when we return BLKPREP_INVALID
authorjiangyiwen <jiangyiwen@huawei.com>
Tue, 16 Feb 2016 12:14:13 +0000 (20:14 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 26 Feb 2016 22:25:32 +0000 (17:25 -0500)
commite1cd3911170eda37fd9501e81ee1c2eb63803fd0
treec4ff024d2f69d7e701dc8223668c43f674133ca7
parent84e54c46b2f440a365a5224f1e5f173a462b7cca
SCSI: Free resources when we return BLKPREP_INVALID

When called scsi_prep_fn return BLKPREP_INVALID, we should use the same
code with BLKPREP_KILL in scsi_prep_return.

Signed-off-by: Yiwen Jiang <jiangyiwen@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_lib.c