linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug in BCMA: device_unregister causing "NULL pointer dereference at"
@ 2011-07-07 15:25 Rafał Miłecki
  2011-07-07 15:27 ` Rafał Miłecki
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Rafał Miłecki @ 2011-07-07 15:25 UTC (permalink / raw)
  To: linux-wireless, Linux Kernel Mailing List

I've problem with bcma and bus subsystem.

This works fine:
modprobe bcma; rmmod bcma

This:
modprobe bcma; modprobe b43; rmmod b43; rmmod bcma
causes:
BUG: unable to handle kernel NULL pointer dereference at   (null)

My BCMA has only 3 fores, out of them only 1 is registered as device:
bcma: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x22, class 0x0)
bcma: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x17, class 0x0)
bcma: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0F, class 0x0)

The dereference comes out from
static void bcma_unregister_cores(struct bcma_bus *bus)

There is a simple loop:
list_for_each_entry(core, &bus->cores, list) {
	if (core->dev_registered)
		device_unregister(&core->dev);
}


So when I unload bcma after I got driver (b43) for 0x812 core, I get
NULL pointer dereference.

Any tip, why does it happen?

-- 
Rafał

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-07-21 16:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07 15:25 Bug in BCMA: device_unregister causing "NULL pointer dereference at" Rafał Miłecki
2011-07-07 15:27 ` Rafał Miłecki
2011-07-14 14:45 ` Francois Romieu
2011-07-21  7:14   ` Rafał Miłecki
2011-07-21  7:18 ` Rafał Miłecki
2011-07-21 16:33   ` Pavel Roskin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).