WARNING in module rt2870sta stable kernel 2.6.37

From: Giangiacomo Mariotti
Date: Tue Jan 18 2011 - 15:16:42 EST


Hi, the following message was logged on a 2.6.37 kernel(it says
tainted, but it's actually a micro patch I wrote and applied on top of
current 2.6.37 vanilla, patch appended, but it should be irrelevant, I
just shut up a bunch of useless debug output for this staging driver):

[ 31.747937] ------------[ cut here ]------------
[ 31.747958] WARNING: at include/linux/netdevice.h:1557
netif_stop_queue.clone.3+0x1a/0x36 [rt2870sta]()
[ 31.747961] Hardware name: EX58-UD5
[ 31.747963] Modules linked in: rt2870sta(C+) i2c_i801 shpchp
i7core_edac edac_core snd_hwdep i2c_core snd_pcm pci_hotplug pcspkr
evdev snd_seq snd_timer snd_seq_device snd tpm_tis tpm tpm_bios
crc_ccitt soundcore snd_page_alloc processor thermal_sys wmi button
crc32c_intel sg sr_mod usbhid firewire_ohci sd_mod hid cdrom
ata_generic crc_t10dif usb_storage uas uhci_hcd ehci_hcd ahci
firewire_core usbcore r8169 libahci pata_jmicron crc_itu_t mii
nls_base floppy [last unloaded: scsi_wait_scan]
[ 31.747999] Pid: 669, comm: modprobe Tainted: G C 2.6.37-my001+ #1
[ 31.748002] Call Trace:
[ 31.748010] [<ffffffff8103b961>] ? warn_slowpath_common+0x78/0x8c
[ 31.748029] [<ffffffffa03e5b0f>] ?
netif_stop_queue.clone.3+0x1a/0x36 [rt2870sta]
[ 31.748048] [<ffffffffa03e60d2>] ? RtmpPhyNetDevInit+0x6d/0x75 [rt2870sta]
[ 31.748065] [<ffffffffa03f5034>] ? rtusb_probe+0x28c/0x36e [rt2870sta]
[ 31.748071] [<ffffffffa0035572>] ? usb_probe_interface+0xfc/0x16f [usbcore]
[ 31.748075] [<ffffffff812a5b61>] ? driver_probe_device+0xb2/0x142
[ 31.748077] [<ffffffff812a5c40>] ? __driver_attach+0x4f/0x6f
[ 31.748079] [<ffffffff812a5bf1>] ? __driver_attach+0x0/0x6f
[ 31.748082] [<ffffffff812a4e05>] ? bus_for_each_dev+0x47/0x72
[ 31.748084] [<ffffffff812a54dd>] ? bus_add_driver+0xa2/0x1f2
[ 31.748086] [<ffffffff812a5e64>] ? driver_register+0x8d/0xf5
[ 31.748091] [<ffffffffa003473a>] ? usb_register_driver+0x80/0x128 [usbcore]
[ 31.748097] [<ffffffffa0412000>] ? init_module+0x0/0x30 [rt2870sta]
[ 31.748100] [<ffffffff810002eb>] ? do_one_initcall+0x78/0x129
[ 31.748104] [<ffffffff81069c68>] ? sys_init_module+0x9c/0x1d7
[ 31.748106] [<ffffffff8100293b>] ? system_call_fastpath+0x16/0x1b
[ 31.748108] ---[ end trace 285f31f0bc9e54ab ]---
[ 31.748109] netif_stop_queue() cannot be called before register_netdev()
[ 31.748533] usbcore: registered new interface driver rt2870


My micro patch: