]> git.baikalelectronics.ru Git - kernel.git/commit
p54: fix oops caused by bad eeproms
authorChristian Lamparter <chunkeey@web.de>
Fri, 9 Jan 2009 20:06:30 +0000 (21:06 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 16 Jan 2009 22:08:22 +0000 (17:08 -0500)
commitd159b93cdb98dcd6b7c44e9305da62b124c47806
treee7d9c9682ef3f30e14d7f5be81d89ab64d1c7238
parentf153a8e8832dc3cd0e192b00c74c6c580cc989a8
p54: fix oops caused by bad eeproms

This patch fixes a bug that could occur, if it the eeprom is incomplete or partly corrupted.

BUG: unable to handle kernel NULL pointer dereference at 00000008
IP: p54_assign_address+0x108/0x15d [p54common]
Oops: 0002 [#1] SMP
Pid: 12988, comm: phy1 Tainted: P        W  2.6.28-rc6-wl #3
RIP: 0010: p54_assign_address+0x108/0x15d [p54common]
 [...]
Call Trace:
 p54_alloc_skb+0xa3/0xc0 [p54common]
 p54_scan+0x37/0x204 [p54common]
 [...]

Signed-off-by: Christian Lamparter <chunkeey@web.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/p54/p54common.c