]> www.infradead.org Git - users/jedix/linux-maple.git/commit
IB/srp: Remove an extraneous scsi_host_put() from an error path
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 18 May 2015 11:23:14 +0000 (13:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Jul 2015 17:10:04 +0000 (10:10 -0700)
commit5e72c7cc287d9415debd623e96ac275f20d37645
tree50b7642253790d7d85cbf5b2d25a1499ea4cd79d
parent3646ac368739a302008cc7bf33a985da2cfa1a17
IB/srp: Remove an extraneous scsi_host_put() from an error path

commit fb49c8bbaae70b14fea2b4590a90a21539f88526 upstream.

Fix a scsi_get_host() / scsi_host_put() imbalance in the error
path of srp_create_target(). See also patch "IB/srp: Avoid that
I/O hangs due to a cable pull during LUN scanning" (commit ID
34aa654ecb8e).

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/srp/ib_srp.c