]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
rtl8187: Fix module so that rmmod/insmod does not error
authorJohannes Berg <johannes@sipsolutions.net>
Tue, 6 Jan 2009 05:11:26 +0000 (23:11 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 12 Jan 2009 19:24:56 +0000 (14:24 -0500)
commitd6e2be988d5146d1faa8df895cd8b32106d987bd
treed462e42c221a86a35af9f6a99d74f811cdbefe54
parent124b68e755c2ef9342d5d477142c499fd7901360
rtl8187: Fix module so that rmmod/insmod does not error

Due to misunderstanding of the returned values allowed for the tx callback
of mac80211, rtl8187 was using skb's that had been freed. This problem was
triggered when the module was sujected to a rmmod/insmod cycle.

After that was fixed, the modules would not work after the rmmod/insmod cycle
until the USB device was reset.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtl818x/rtl8187_dev.c