]> git.baikalelectronics.ru Git - kernel.git/commit
ssb: fix NULL ptr deref when pcihost_wrapper is used
authorChristoph Fritz <chf.fritz@googlemail.com>
Fri, 28 May 2010 08:45:59 +0000 (10:45 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 May 2010 17:57:01 +0000 (13:57 -0400)
commit3613aa9069e8468c70bc36c1d057a8324162a2e7
tree0d248099b31416aa6f7adcba5c8a259c6363751b
parentb57d09e0b233ae5caa2ffbe107e4c21e1c221037
ssb: fix NULL ptr deref when pcihost_wrapper is used

Ethernet driver b44 does register ssb by it's pcihost_wrapper
and doesn't set ssb_chipcommon. A check on this value
introduced with commit 7e4b6badd3ea2c0a004fea98f380ed0fca54c56d
and 301427ae12c13a891598a44637c41574fe87bd8c triggers:

BUG: unable to handle kernel NULL pointer dereference at 00000010
IP: [<c1266c36>] ssb_is_sprom_available+0x16/0x30

Signed-off-by: Christoph Fritz <chf.fritz@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/ssb/pci.c
drivers/ssb/sprom.c