diff options
author | Bart Van Assche <bvanassche@acm.org> | 2012-08-24 10:27:54 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-10-07 08:39:36 -0700 |
commit | c4a3b460296bb69d5109d46a7e94df7f97774c56 (patch) | |
tree | 7364239f48aafdfdbc3f35a3a9b906f48f7b56ad /net/lapb/lapb_subr.c | |
parent | e3052eb712da474b11f43b1ec602c22b885b5403 (diff) |
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 <bvanassche@acm.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions