OSDN Git Service

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:14 +0000 (10:10 -0700)
commitce5f8d2f983b7822697089b15794326bb07ef303
tree81ea48864f81c0419e7f0dec37d435329662ed8d
parentf430f36d61afe82938c3d632bfb6bab21e6403a7
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