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)
commit9ddbcfa098bae757d3760dd1dbf2847a0bd5a525
tree256e6839ab22cdb0570f1f44d84631b898e0cfde
parent3ba23ade464cca7c4a7ba5628c613339d3f2e161
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