Message ID | CAMGffEkTLSqy1KVwoDHEWGCR0wCa2KvHheNov1=DRienvrQomg@mail.gmail.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Headers | show |
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 1f832c8..d10dabd 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -692,7 +692,7 @@ static bool scsi_end_request(struct request *req, int error, struct scsi_device *sdev = cmd->device; struct request_queue *q = sdev->request_queue; - if (blk_update_request(req, error, bytes)) { + if ((bytes == 0 && blk_rq_bytes(req) == 0 && error) || blk_update_request(req, error, bytes)) { It lead to BUG below: