OpenCloudOS-Kernel/drivers/net/wireless
Stanislaw Gruszka 543cc38c8f rt2x00: do not drop usb dev reference counter on suspend
When hibernating ->resume may not be called by usb core, but disconnect
and probe instead, so we do not increase the counter after decreasing
it in ->supend. As a result we free memory early, and get crash when
unplugging usb dongle.

BUG: unable to handle kernel paging request at 6b6b6b9f
IP: [<c06909b0>] driver_sysfs_remove+0x10/0x30
*pdpt = 0000000034f21001 *pde = 0000000000000000
Pid: 20, comm: khubd Not tainted 3.1.0-rc1-wl+ #20 LENOVO 6369CTO/6369CTO
EIP: 0060:[<c06909b0>] EFLAGS: 00010202 CPU: 1
EIP is at driver_sysfs_remove+0x10/0x30
EAX: 6b6b6b6b EBX: f52bba34 ECX: 00000000 EDX: 6b6b6b6b
ESI: 6b6b6b6b EDI: c0a0ea20 EBP: f61c9e68 ESP: f61c9e64
 DS: 007b ES: 007b FS: 00d8 GS: 00e0 SS: 0068
Process khubd (pid: 20, ti=f61c8000 task=f6138270 task.ti=f61c8000)
Call Trace:
 [<c06909ef>] __device_release_driver+0x1f/0xa0
 [<c0690b20>] device_release_driver+0x20/0x40
 [<c068fd64>] bus_remove_device+0x84/0xe0
 [<c068e12a>] ? device_remove_attrs+0x2a/0x80
 [<c068e267>] device_del+0xe7/0x170
 [<c06d93d4>] usb_disconnect+0xd4/0x180
 [<c06d9d61>] hub_thread+0x691/0x1600
 [<c0473260>] ? wake_up_bit+0x30/0x30
 [<c0442a39>] ? complete+0x49/0x60
 [<c06d96d0>] ? hub_disconnect+0xd0/0xd0
 [<c06d96d0>] ? hub_disconnect+0xd0/0xd0
 [<c0472eb4>] kthread+0x74/0x80
 [<c0472e40>] ? kthread_worker_fn+0x150/0x150
 [<c0809b3e>] kernel_thread_helper+0x6/0x10

Cc: stable@kernel.org
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Acked-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2011-08-22 14:21:40 -04:00
..
ath ath5k: fix error handling in ath5k_beacon_send 2011-08-09 16:11:33 -04:00
b43 b43: read correct register on bcma bus. 2011-08-09 16:11:31 -04:00
b43legacy atomic: use <linux/atomic.h> 2011-07-26 16:49:47 -07:00
hostap net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared 2011-07-27 22:39:30 -07:00
ipw2x00 Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-07-08 11:03:36 -04:00
iwlegacy Merge git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next into for-davem 2011-08-03 09:18:21 -04:00
iwlwifi iwlagn: sysfs couldn't find the priv pointer 2011-08-13 14:40:46 -04:00
iwmc3200wifi drivers/net: Remove unnecessary semicolons 2011-06-05 14:33:40 -07:00
libertas Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-07-22 17:51:16 -04:00
libertas_tf Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-06-30 13:34:06 -04:00
mwifiex mwifiex: disable auto deep sleep before unloading the driver 2011-07-21 14:52:04 -04:00
orinoco Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-07-22 17:51:16 -04:00
p54 net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
prism54 net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
rt2x00 rt2x00: do not drop usb dev reference counter on suspend 2011-08-22 14:21:40 -04:00
rtl818x net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
rtlwifi rtlwifi: rtl892cu: New USB IDs 2011-08-09 16:11:32 -04:00
wl12xx drivers/net/wireless/wl12xx: add missing kfree 2011-08-12 13:33:31 -04:00
wl1251 drivers/net/wireless/wl1251: add missing kfree 2011-08-10 14:07:10 -04:00
zd1211rw zd1211rw: detect stalled beacon interrupt faster 2011-06-22 16:09:47 -04:00
Kconfig
Makefile
adm8211.c net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
adm8211.h
airo.c net: Audit drivers to identify those needing IFF_TX_SKB_SHARING cleared 2011-07-27 22:39:30 -07:00
airo.h
airo_cs.c pcmcia: Convert pcmcia_device_id declarations to const 2011-05-06 07:46:22 +02:00
at76c50x-usb.c
at76c50x-usb.h
atmel.c net: remove interrupt.h inclusion from netdevice.h 2011-06-06 22:55:11 -07:00
atmel.h
atmel_cs.c pcmcia: Convert pcmcia_device_id declarations to const 2011-05-06 07:46:22 +02:00
atmel_pci.c
mac80211_hwsim.c mac80211: restrict advertised HW scan rates 2011-06-27 15:09:39 -04:00
mac80211_hwsim.h mac80211_hwsim driver support userspace frame tx/rx 2011-06-01 15:11:00 -04:00
mwl8k.c Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 into for-davem 2011-07-22 17:51:16 -04:00
ray_cs.c pcmcia: Convert pcmcia_device_id declarations to const 2011-05-06 07:46:22 +02:00
ray_cs.h
rayctl.h
rndis_wlan.c cfg80211: Use consistent BSS matching between scan and sme 2011-05-19 10:37:18 -04:00
wl3501.h
wl3501_cs.c pcmcia: Convert pcmcia_device_id declarations to const 2011-05-06 07:46:22 +02:00
zd1201.c
zd1201.h