]> git.baikalelectronics.ru Git - kernel.git/commit
RDS/IB: Improve RDS protocol version checking
authorAndy Grover <andy.grover@oracle.com>
Fri, 17 Jul 2009 13:13:23 +0000 (13:13 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 20 Jul 2009 15:03:02 +0000 (08:03 -0700)
commit6881a016e7a7262cd352babb83555782f513ccb0
tree256e6839ab22cdb0570f1f44d84631b898e0cfde
parent5e14179796a49e61dd7590113388c8b462de0516
RDS/IB: Improve RDS protocol version checking

RDS on IB uses privdata to do protocol version negotiation. Apparently
the IB stack will return a larger privdata buffer than the struct we were
expecting. Just to be extra-sure, this patch adds some checks in this area.

Signed-off-by: Andy Grover <andy.grover@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/rds/ib_cm.c