From: Bart Van Assche Date: Tue, 14 Aug 2012 13:18:53 +0000 (+0000) Subject: IB/srp: Fix a race condition X-Git-Tag: v3.2.29~62 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fc7834af1b974a2578440d1210a991eedd2151b1;p=pandora-kernel.git IB/srp: Fix a race condition commit 220329916c72ee3d54ae7262b215a050f04a18fc upstream. 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 Reference: http://marc.info/?l=linux-rdma&m=134314367801595 Acked-by: David Dillow Signed-off-by: Bart Van Assche Signed-off-by: Roland Dreier Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed