From: Johannes Berg Date: Fri, 29 Feb 2008 22:28:25 +0000 (+0100) Subject: p54: fix eeprom parser length sanity checks X-Git-Tag: v2.6.25-rc4~2^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2f2d3a06f8b628d444cf4f396d6c6ddd47e1d1f;p=pandora-kernel.git 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 Tested-by: Florian Fainelli Signed-off-by: John W. Linville --- Reading git-diff-tree failed