]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
sierra-ms: do not call scsi_get_host_dev()
authorHannes Reinecke <hare@suse.de>
Tue, 5 May 2020 14:30:19 +0000 (16:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 12:20:00 +0000 (14:20 +0200)
commitc22eb9374cb0f3936d1942d07e78855fd4e88846
tree9ccad62fe147e6239ef043d6f1173861caa382cb
parent2ca23ae59e997f1b6df7662d8ef10d9c471b46d0
sierra-ms: do not call scsi_get_host_dev()

scsi_get_host_dev() will create a virtual device such that either
the target id is ignored from scanning (if 'this_id' is set to
something which can be reached during scanning) or if the driver
needs a scsi device for the HBA to send commands to.
Neither is true for sierra-ms; 'this_id' remains at the default
value '-1' and the created device is never ever used within
the driver.
So kill it.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20200505143019.57418-1-hare@suse.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/sierra_ms.c