Johannes Berg c2f2d3a06f p54: fix eeprom parser length sanity checks
When I called p54_parse_eeprom() on a hand-coded structure
I managed to make a small mistake with wrap->len which caused
a segfault a few lines down when trying to read entry->len.
This patch changes the validation code to avoid such problems.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Tested-by: Florian Fainelli <florian.fainelli@telecomint.eu>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2008-03-04 18:36:36 -05:00
..
2008-02-03 04:28:34 -08:00
2008-01-28 15:10:29 -08:00
2008-02-23 23:54:59 -05:00
2008-02-15 10:51:51 -05:00
2008-02-03 15:42:53 +02:00
2008-01-28 15:10:31 -08:00
2008-01-28 15:10:31 -08:00
2008-02-03 15:42:53 +02:00
2008-02-03 04:26:15 -08:00
2008-02-09 23:27:01 -08:00
2008-02-11 10:29:33 -05:00
2008-01-28 15:09:19 -08:00
2008-01-31 19:27:17 -08:00
2008-01-31 19:27:17 -08:00
2008-02-23 19:49:48 -08:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:51:50 -08:00
2008-02-28 11:57:55 -08:00
2008-02-01 20:54:03 +11:00
2008-02-03 04:28:07 -08:00
2008-01-28 15:07:59 -08:00
2008-02-11 11:13:47 -05:00
2008-02-15 10:51:53 -05:00
2008-02-03 04:26:12 -08:00
2008-02-24 00:07:42 -05:00
2008-02-03 04:28:10 -08:00
2008-02-09 23:41:08 -08:00
2008-02-20 00:18:09 -08:00
2008-02-20 00:18:09 -08:00
2008-01-28 15:07:56 -08:00
2008-02-11 10:28:31 -05:00
2008-01-28 15:11:27 -08:00
2008-01-28 15:11:27 -08:00
2008-01-28 15:11:27 -08:00
2008-01-28 15:11:27 -08:00
2008-01-28 15:08:00 -08:00
2008-01-28 15:08:00 -08:00
2008-02-05 23:29:22 +01:00
2008-02-03 04:27:38 -08:00
2008-02-03 04:27:38 -08:00
2008-02-24 00:07:39 -05:00
2008-02-24 00:07:39 -05:00
2008-01-28 15:11:27 -08:00
2008-02-09 23:42:17 -08:00
2008-02-03 04:26:15 -08:00
2008-02-03 04:26:14 -08:00
2008-02-23 19:51:59 -08:00
2008-02-11 14:47:29 -05:00
2008-02-09 23:40:34 -08:00
2008-02-03 04:25:59 -08:00
2008-02-20 00:21:47 -08:00
2008-02-09 23:41:40 -08:00