From: Nicholas Bellinger Date: Tue, 17 Jun 2014 22:23:03 +0000 (+0000) Subject: tcm_loop: Fix memory leak in tcm_loop_submission_work error path X-Git-Tag: omap-for-v3.16/fixes-rc4~39^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b43f1886e4d3ea3f68665eaea96526ccdd53741d;p=pandora-kernel.git 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 Tested-by: Sebastian Herbszt Signed-off-by: Nicholas Bellinger --- Reading git-diff-tree failed