]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: ses: Fix wrong page error
authorBrian King <brking@linux.vnet.ibm.com>
Tue, 1 Aug 2017 18:45:36 +0000 (13:45 -0500)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Aug 2017 15:49:52 +0000 (11:49 -0400)
commit0fb4cc23a504a1d1a235d2f354839495329962ef
treea424f444cb1ff2352e27d1f0f83ee8276b511d4f
parent1c155a085892684977f672b963d395d990d69408
scsi: ses: Fix wrong page error

If a SES device returns an error on a requested diagnostic page, we are
currently printing an error indicating the wrong page was received. Fix
this up to simply return a failure and only check the returned page when
the diagnostic page buffer was populated by the device.

Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ses.c