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: v3.2.32~64 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6bfc0805e76ff5a2fd0e2b2f1bee777c38b0da1c;p=pandora-kernel.git IB/srp: Fix use-after-free in srp_reset_req() commit 9b796d06d5d1b1e85ae2316a283ea11dd739ef96 upstream. 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 Signed-off-by: Roland Dreier Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed