> > 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@xxxxxxxxxxxxxxxx> > > I confirm this patch works, thanks Johannes. Tested with an Inventel UR054g > dongle. > > Tested-by: Florian Fainelli <florian.fainelli@xxxxxxxxxxxxx> Great, thanks for testing. John, please merge both these patches. johannes
Attachment:
signature.asc
Description: This is a digitally signed message part