diff options
author | Bart Van Assche <bvanassche@acm.org> | 2012-08-14 13:18:53 +0000 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2012-08-15 12:00:48 -0700 |
commit | 220329916c72ee3d54ae7262b215a050f04a18fc (patch) | |
tree | 0d89f6e3cc8f17b070c16665d3df4e883fda9ddc /drivers/infiniband/hw/cxgb3/iwch_cm.c | |
parent | 0d7614f09c1ebdbaa1599a5aba7593f147bf96ee (diff) |
IB/srp: Fix a race condition
Avoid a crash caused by the scmnd->scsi_done(scmnd) call in
srp_process_rsp() being invoked with scsi_done == NULL. This can
happen if a reply is received during or after a command abort.
Reported-by: Joseph Glanville <joseph.glanville@orionvm.com.au>
Reference: http://marc.info/?l=linux-rdma&m=134314367801595
Cc: <stable@vger.kernel.org>
Acked-by: David Dillow <dillowda@ornl.gov>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/hw/cxgb3/iwch_cm.c')
0 files changed, 0 insertions, 0 deletions