p54: potential signedness issue in p54_parse_rssical()
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 2 Dec 2012 10:36:09 +0000 (13:36 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 3 Dec 2012 18:51:59 +0000 (13:51 -0500)
commit6dac3447425d932fa76a4e69d32eead9dd090b27
tree83cb00258be6d34244785d069816e00247ce2839
parent06ef5c4bbb9816e7a7eb44917f11c2e3375fb51a
p54: potential signedness issue in p54_parse_rssical()

"entries" is unsigned here, so it is never less than zero.  In theory,
len could be less than offset so I have added a check for that.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/eeprom.c