Re: [PATCH][V2] usb: storage: return on error to avoid a null pointer dereference

2017-07-06 Thread Alan Stern
On Thu, 6 Jul 2017, Colin King wrote: > From: Colin Ian King > > When us->extra is null the driver is not initialized, however, a > later call to osd200_scsi_to_ata is made that dereferences > us->extra, causing a null pointer dereference. The code > currently detects and reports that the drive

[PATCH][V2] usb: storage: return on error to avoid a null pointer dereference

2017-07-06 Thread Colin King
From: Colin Ian King When us->extra is null the driver is not initialized, however, a later call to osd200_scsi_to_ata is made that dereferences us->extra, causing a null pointer dereference. The code currently detects and reports that the driver is not initialized; add a return to avoid the sub