diff options
author | James Bottomley <James.Bottomley@HansenPartnership.com> | 2017-09-07 21:12:43 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2017-09-07 21:12:43 +0200 |
commit | 2441500a41a9b17ff657626eb81972f62bc8cc5a (patch) | |
tree | a73d114149de8daa1da3713d4048930ba7421384 /drivers/scsi/ses.c | |
parent | scsi: scsi-mq: Always unprepare before requeuing a request (diff) | |
parent | scsi: qla2xxx: Fix an integer overflow in sysfs code (diff) | |
download | linux-2441500a41a9b17ff657626eb81972f62bc8cc5a.tar.xz linux-2441500a41a9b17ff657626eb81972f62bc8cc5a.zip |
Merge branch 'fixes' into misc
Diffstat (limited to 'drivers/scsi/ses.c')
-rw-r--r-- | drivers/scsi/ses.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ses.c b/drivers/scsi/ses.c index ea7066cbf0d5..11826c5c2dd4 100644 --- a/drivers/scsi/ses.c +++ b/drivers/scsi/ses.c @@ -106,7 +106,7 @@ static int ses_recv_diag(struct scsi_device *sdev, int page_code, ret = scsi_execute_req(sdev, cmd, DMA_FROM_DEVICE, buf, bufflen, NULL, SES_TIMEOUT, SES_RETRIES, NULL); - if (unlikely(!ret)) + if (unlikely(ret)) return ret; recv_page_code = ((unsigned char *)buf)[0]; |