Skip to contentSkip to conversation

bcm43xx-d80211: fix oops when removing the module

PATCH Michael Buesch 1 participant 2 messages Feb 15, 2006 – Feb 16, 2006 4 messages not in the archive

Subsystems (2)
lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 1 line · you

This patch fixes an oops when bcm43xx-d80211 module is unloaded.

This is already fixed in my tree.

Quoted 16 lines
drivers/net/wireless/bcm43xx-d80211/bcm43xx_main.c +2 -1
@@ -4785,7 +4785,8 @@ static void __devexit bcm43xx_remove_one
 	ieee80211_unregister_hw(net_dev);
 	bcm43xx_detach_board(bcm);
 	destroy_workqueue(bcm->workqueue);
-	kfree_skb(bcm->cached_beacon);
+	if (bcm->cached_beacon)
+		kfree_skb(bcm->cached_beacon);
 	assert(bcm->ucode == NULL);
 	ieee80211_free_hw(net_dev);
 	kfree(ieee);
Signature · 1 line
Greetings Michael.

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 8 lines · you
Quoted 3 lines · Michael Buesch
Quoted 1 line · you

This patch fixes an oops when bcm43xx-d80211 module is unloaded.

This is already fixed in my tree.

Is the tree available somewhere? I'm testing some patches for the d80211 stack and it will help me if I can pull the latest bcm43xx version to my local repository.

sure.
git://bu3sch.de/wireless-2.6
branches dscape-all and softmac-all. The other branches are unused and the result of the initial linville clone. ;) I should probably clean it up a little bit, but I did not care, yet.

Signature · 1 line
Greetings Michael.