scsi: ses: check return code from ses_recv_diag()
authorHannes Reinecke <hare@suse.de>
Tue, 15 Aug 2017 08:21:41 +0000 (10:21 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 25 Aug 2017 02:28:58 +0000 (22:28 -0400)
commitacf8ab9a85bfd6ead185a59c4cfe26b25d5a082f
treebc20b7ff2f08e4d35b54c1c4d8203dc4d63e1630
parentc8cd71f1f32a6227ecadbbbaaf3147a41292ecb5
scsi: ses: check return code from ses_recv_diag()

We should be checking the return code from ses_recv_diag() to avoid
accessing invalid data.

Signed-off-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ses.c