Toru UCHIYAMA
38bddf04bc
gianfar: gfar_remove needs to call unregister_netdev()
This patch solves the problem that the Oops(BUG_ON) occurs by rmmod.
# rmmod gianfar_driver
------------[ cut here ]------------
Kernel BUG at c01fec48 [verbose debug info unavailable]
Oops: Exception in kernel mode, sig: 5 [#1]
MPC837x MDS
Modules linked in: gianfar_driver(-) usb_storage scsi_wait_scan
NIP: c01fec48 LR: c01febf4 CTR: c01feba8
REGS: dec5bd60 TRAP: 0700 Tainted: G W (2.6.31-rc2)
MSR: 00029032 <EE,ME,CE,IR,DR> CR: 22000424 XER: 20000000
TASK = dec4cac0[1135] 'rmmod' THREAD: dec5a000
GPR00: 00000002 dec5be10 dec4cac0 dfba1820 c035d444 c035d478 ffffffff 00000000
GPR08: 0000002b 00000001 dfba193c 00000001 22000424 10019b34 1ffcb000 00000000
GPR16: 10012008 00000000 bf82ebe0 100017ec bf82ebec bf82ebe8 bf82ebd0 00000880
GPR24: 00000000 bf82ebf0 c03532f0 c03532e4 c036b594 dfba183c dfba1800 dfba1820
NIP [c01fec48] free_netdev+0xa0/0xb8
LR [c01febf4] free_netdev+0x4c/0xb8
Call Trace:
[dec5be10] [c01febf4] free_netdev+0x4c/0xb8 (unreliable)
[dec5be30] [e105f290] gfar_remove+0x50/0x68 [gianfar_driver]
[dec5be40] [c01ec534] of_platform_device_remove+0x30/0x44
[dec5be50] [c0181760] __device_release_driver+0x68/0xc8
[dec5be60] [c0181868] driver_detach+0xa8/0xac
[dec5be80] [c0180814] bus_remove_driver+0x9c/0xd8
[dec5bea0] [c0181efc] driver_unregister+0x60/0x98
[dec5beb0] [c01ec650] of_unregister_driver+0x14/0x24
[dec5bec0] [e10631bc] gfar_exit+0x18/0x4bc [gianfar_driver]
[dec5bed0] [c0047584] sys_delete_module+0x16c/0x228
[dec5bf40] [c00116bc] ret_from_syscall+0x0/0x38
--- Exception: c01 at 0xff3669c
LR = 0x10000f34
Instruction dump:
409e0024 a07e00c0 7c63f050 4be74429 80010024 bba10014 38210020 7c0803a6
4e800020 68000003 3160ffff 7d2b0110 <0f090000> 38000004 387e01f0 901e01d4
---[ end trace 8c595bcd37230a0f ]---
localhost kernel: ------------[ cut here ]------------
Signed-off-by: Toru UCHIYAMA uchiyama.toru@jp.fujitsu.com
Signed-off-by: David S. Miller <davem@davemloft.net>
2009-08-30 22:04:07 -07:00
..
2009-08-02 12:55:51 -04:00
2009-07-05 22:39:08 +01:00
2009-07-28 21:07:09 -04:00
2009-07-28 13:45:22 -07:00
2009-07-28 08:57:33 +02:00
2009-07-12 12:22:34 -07:00
2009-08-04 15:39:43 -07:00
2009-06-24 21:08:11 +09:00
2009-07-21 12:43:51 -07:00
2009-08-04 14:32:11 -04:00
2009-07-30 16:46:31 -07:00
2009-08-04 12:10:06 +02:00
2009-07-06 14:03:44 -07:00
2009-07-12 12:22:34 -07:00
2009-08-09 12:25:29 +10:00
2009-07-22 09:30:07 -07:00
2009-07-28 16:31:39 +02:00
2009-07-30 01:03:24 +01:00
2009-07-21 20:36:25 -07:00
2009-07-06 14:03:44 -07:00
2009-06-23 10:38:47 -07:00
2009-08-07 10:42:14 -07:00
2009-08-04 15:38:34 -07:00
2009-07-03 15:45:29 +01:00
2009-07-30 16:03:46 +09:30
2009-06-26 14:37:25 +10:00
2009-08-03 10:59:58 +10:00
2009-07-24 14:03:32 -03:00
2009-06-22 08:54:14 -05:00
2009-08-04 20:31:32 +02:00
2009-07-31 12:28:46 +02:00
2009-08-07 10:39:56 -07:00
2009-08-09 14:58:34 -07:00
2009-08-30 22:04:07 -07:00
2009-07-22 09:27:18 -07:00
2009-07-10 12:35:36 +02:00
2009-08-02 15:42:39 +02:00
2009-06-30 18:55:59 -07:00
2009-08-06 11:35:50 +01:00
2009-07-08 10:30:03 -07:00
2009-08-02 12:36:01 -04:00
Merge branches 'acerhdf', 'acpi-pci-bind', 'bjorn-pci-root', 'bugzilla-12904', 'bugzilla-13121', 'bugzilla-13396', 'bugzilla-13533', 'bugzilla-13612', 'c3_lock', 'hid-cleanups', 'misc-2.6.31', 'pdc-leak-fix', 'pnpacpi', 'power_nocheck', 'thinkpad_acpi', 'video' and 'wmi' into release
2009-06-24 01:19:50 -04:00
2009-07-30 16:45:53 -07:00
2009-07-29 19:10:35 -07:00
2009-08-04 15:38:10 -07:00
2009-08-04 15:38:34 -07:00
2009-08-07 10:46:51 -07:00
2009-07-29 19:10:35 -07:00
2009-07-09 20:33:18 -07:00
2009-08-07 16:12:03 -07:00
2009-07-12 12:22:34 -07:00
2009-08-07 16:05:14 -07:00
2009-08-07 10:39:56 -07:00
2009-07-30 16:03:45 +09:30
2009-07-06 13:57:03 -07:00
2009-08-07 10:39:55 -07:00
2009-08-07 10:46:51 -07:00
2009-07-01 11:19:47 +02:00