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)
committerDoug Ledford <dledford@redhat.com>
Mon, 18 May 2015 17:35:55 +0000 (13:35 -0400)
commitfb49c8bbaae70b14fea2b4590a90a21539f88526
tree3c9db6d09c46fc97c13620607e0e33302f45df84
parent535fb906225fb7436cb658144d0c0cea14a26f3e
IB/srp: Remove an extraneous scsi_host_put() from an error path

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>
Cc: <stable@vger.kernel.org> #v3.19
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c