staging: lustre: prevent underflows in lnet_parse_reply()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 1 Apr 2015 08:13:03 +0000 (11:13 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Apr 2015 09:07:33 +0000 (11:07 +0200)
commit005b23d6b6e7e798b6799bedffc60f33494058ea
treee69f0a21a62d74a1d0b155592b7255b3cdc31fa4
parentfaec8ab42b4a0f119a1cfbceef0c14b7b61059cb
staging: lustre: prevent underflows in lnet_parse_reply()

I don't know if "hdr->payload_length;" can really be negative, but if so
then we shouldn't allow it.  Do the comparison as an unsigned.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/lib-move.c