diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-06-18 00:23:03 +0200 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2014-06-27 05:56:49 +0200 |
commit | b43f1886e4d3ea3f68665eaea96526ccdd53741d (patch) | |
tree | 09b7cedc3ea62bd601987ad5172051d349d32c9d /drivers/ide | |
parent | iscsi-target: Explicily clear login response PDU in exception path (diff) | |
download | linux-b43f1886e4d3ea3f68665eaea96526ccdd53741d.tar.xz linux-b43f1886e4d3ea3f68665eaea96526ccdd53741d.zip |
tcm_loop: Fix memory leak in tcm_loop_submission_work error path
This patch fixes a tcm_loop_cmd descriptor memory leak in the
tcm_loop_submission_work() error path, and would result in
warnings about leaked tcm_loop_cmd_cache objects at module
unload time.
Go ahead and invoke kmem_cache_free() to release tl_cmd back to
tcm_loop_cmd_cache before calling sc->scsi_done().
Reported-by: Sebastian Herbszt <herbszt@gmx.de>
Tested-by: Sebastian Herbszt <herbszt@gmx.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/ide')
0 files changed, 0 insertions, 0 deletions