]> err.no Git - linux-2.6/commit
IB/cm: Check cm_id state before handling a REP
authorSean Hefty <sean.hefty@intel.com>
Fri, 3 Mar 2006 00:50:37 +0000 (16:50 -0800)
committerRoland Dreier <rolandd@cisco.com>
Mon, 20 Mar 2006 18:08:23 +0000 (10:08 -0800)
commit87fd1a11ae91ab42fac978467667c61fee9f01da
tree856c3ca67426211ac229b87bea31d8b1a3154840
parent6226bb570184eb6c645e047d2aecbce8c0442e3e
IB/cm: Check cm_id state before handling a REP

Move checking the state of a cm_id before modifying it when handling a
REP.  This fixes a bug seen under MPI scale-up testing, where a NULL
timewait_info pointer is dereferenced if a request times out before a
REP is received.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cm.c