Skip to content
Commit c2f2d3a0 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

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: default avatarJohannes Berg <johannes@sipsolutions.net>
Tested-by: default avatarFlorian Fainelli <florian.fainelli@telecomint.eu>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 8c28293f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment