From: Bart Van Assche Date: Fri, 24 Aug 2012 10:27:54 +0000 (+0000) Subject: IB/srp: Fix use-after-free in srp_reset_req() X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~42^2^8~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b796d06d5d1b1e85ae2316a283ea11dd739ef96;p=pandora-kernel.git IB/srp: Fix use-after-free in srp_reset_req() srp_free_req() uses the scsi_cmnd structure contents to unmap buffers, so we must invoke srp_free_req() before we release ownership of that structure. Signed-off-by: Bart Van Assche Acked-by: David Dillow Cc: Signed-off-by: Roland Dreier --- Reading git-diff-tree failed