]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbde06f996623f26d2977c6ade5b723105257284c
treeffc71b886d8bf73524f8a19837b4ab22b9698572
parent1cbd3ca58becfdd030a5e096fd3b8699e42be9c3
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