[qib7322] Validate payload length
authorMichael Brown <mcb30@ipxe.org>
Wed, 30 Mar 2016 06:31:51 +0000 (07:31 +0100)
committerMichael Brown <mcb30@ipxe.org>
Wed, 30 Mar 2016 06:31:51 +0000 (07:31 +0100)
commit597521ef531b2d7f8ed264f33cba7517e11ab05e
tree4c4c653497e845a56e1d0012d5bf581d76a13a35
parentc9af896314e33885fc91e86f531bea7e7dd1f9f3
[qib7322] Validate payload length

There is no way for the hardware to give us an invalid length in the
LRH, since it must have parsed this length field in order to perform
header splitting.  However, this is difficult to prove conclusively.

Add an unnecessary length check to explicitly reject any packets
larger than the posted receive I/O buffer.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/drivers/infiniband/qib7322.c