]> git.baikalelectronics.ru Git - kernel.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)
commitd7dad0b6017f9b3dee47e11446978f695108da7d
treed462e42c221a86a35af9f6a99d74f811cdbefe54
parent2d7e9f6633dc3fe09f98c25ae7b9b71ce12bcf47
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