orinoco: prevent accessing memory outside the firmware image
authorDavid Kilroy <kilroyd@googlemail.com>
Sat, 21 Feb 2009 16:52:54 +0000 (16:52 +0000)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 27 Feb 2009 19:53:02 +0000 (14:53 -0500)
Do this by indicating the end of the appropriate regions of memory.

Note that MAX_PDA_SIZE should only apply to the PDA block read from
flash/EEPROM, and has been erronously applied to the pdr elements.
Remove the macro, and use the actual PDA size passed down by the caller.

We also fix up some of the types used, marking as much as possible
const, and using void* for the end pointers.

Signed-off-by: David Kilroy <kilroyd@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

No differences found