Re: [PATCH] uas: fix error handling during scsi_scan()

2014-03-28 Thread Hans de Goede
Hi, On 03/28/2014 11:29 AM, oli...@neukum.org wrote: > From: Oliver Neukum > > intfdata is set only after scsi_scan(). uas_pre_reset() however > needs intfdata to be valid and will follow the NULL pointer > killing khubd. intfdata must be preemptively set before the > host is registered and undo

[PATCH] uas: fix error handling during scsi_scan()

2014-03-28 Thread oliver
From: Oliver Neukum intfdata is set only after scsi_scan(). uas_pre_reset() however needs intfdata to be valid and will follow the NULL pointer killing khubd. intfdata must be preemptively set before the host is registered and undone in the error case. Signed-off-by: Oliver Neukum --- drivers/