[SCSI] complete the whole command when it is REQ_BLOCK_PC
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / scsi / st.c
index 6d9078705c5be1221eb5b74e76a3d75cde3b9c6e..053444b027d4dae2349e251c9c786f01d0aaac86 100644 (file)
@@ -4185,7 +4185,11 @@ static void scsi_tape_release(struct kref *kref)
 
 static void st_intr(struct scsi_cmnd *SCpnt)
 {
-       scsi_io_completion(SCpnt, (SCpnt->result ? 0: SCpnt->bufflen), 1);
+       /*
+        * The caller should be checking the request's errors
+        * value.
+        */
+       scsi_io_completion(SCpnt, SCpnt->bufflen, 0);
 }
 
 /*