summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2008-03-01 01:28:25 +0300
committerJohn W. Linville <linville@tuxdriver.com>2008-03-05 02:36:36 +0300
commitc2f2d3a06f8b628d444cf4f396d6c6ddd47e1d1f (patch)
tree7879c02aa491f6e335dd907b1093941bfb892215 /include
parent8c28293f5514f64ba064bac7946aebeda4a663c6 (diff)
downloadlinux-c2f2d3a06f8b628d444cf4f396d6c6ddd47e1d1f.tar.xz
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions