IB/srpt: Fix srpt_handle_cmd() error paths
authorBart Van Assche <bart.vanassche@sandisk.com>
Thu, 11 Feb 2016 19:06:55 +0000 (11:06 -0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 29 Feb 2016 22:12:35 +0000 (17:12 -0500)
commit2c7f37ff1c33087b8a4567730ebb128e8572da5e
treeffc71b886d8bf73524f8a19837b4ab22b9698572
parentf108f0f66a1f01ab077a88b1da2e2f092acd4b14
IB/srpt: Fix srpt_handle_cmd() error paths

The target core function that should be called if target_submit_cmd()
fails is target_put_sess_cmd(). Additionally, change the return type
of srpt_handle_cmd() from int into void.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Alex Estrin <alex.estrin@intel.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srpt/ib_srpt.c