Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi

Pull SCSI fix from James Bottomley:
"Our final fix before the 4.12 release (hopefully).

It's an error leg again: the fix to not bug on empty DMA transfers is
returning the wrong code and confusing the block layer"

* tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi:
scsi: return correct blkprep status code in case scsi_init_io() fails.

+2 -2
+2 -2
drivers/scsi/scsi_lib.c
··· 1061 1061 struct scsi_device *sdev = cmd->device; 1062 1062 struct request *rq = cmd->request; 1063 1063 bool is_mq = (rq->mq_ctx != NULL); 1064 - int error; 1064 + int error = BLKPREP_KILL; 1065 1065 1066 1066 if (WARN_ON_ONCE(!blk_rq_nr_phys_segments(rq))) 1067 - return -EINVAL; 1067 + goto err_exit; 1068 1068 1069 1069 error = scsi_init_sgtable(rq, &cmd->sdb); 1070 1070 if (error)