scsi: osd_uld: Check scsi_device_get() return value
authorBart Van Assche <Bart.VanAssche@sandisk.com>
Thu, 30 Mar 2017 17:17:17 +0000 (17:17 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 6 Apr 2017 16:43:12 +0000 (12:43 -0400)
commitc02465fa13b6232db664c5dcfe9c429b4fe31c99
tree9d99b1adefbee5609ceb8529671bb33e95bf929e
parent8690218a4c98af41f4abd3dba97bcf468c537629
scsi: osd_uld: Check scsi_device_get() return value

scsi_device_get() can fail. Hence check its return value.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: Boaz Harrosh <ooo@electrozaur.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/osd/osd_uld.c