]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
scsi: ignore errors from scsi_dh_add_device()
authorHannes Reinecke <hare@suse.de>
Tue, 1 Dec 2015 09:16:42 +0000 (10:16 +0100)
committerKamal Mostafa <kamal@canonical.com>
Thu, 18 Aug 2016 17:24:00 +0000 (10:24 -0700)
commit4db7ae287f2e479e7fc1c9abc4781701244d81b2
treef6938f9011c7743e24452c69ee52de1182985b71
parenta9cd4e74176b92bbf1631c9a5a05b223655fefce
scsi: ignore errors from scsi_dh_add_device()

BugLink: http://bugs.launchpad.net/bugs/1614560
commit 221255aee67ec1c752001080aafec0c4e9390d95 upstream.

device handler initialisation might fail due to a number of
reasons. But as device_handlers are optional this shouldn't
cause us to disable the device entirely.
So just ignore errors from scsi_dh_add_device().

Reviewed-by: Johannes Thumshirn <jthumshirn@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Laura Abbott <labbott@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
drivers/scsi/scsi_sysfs.c