Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=9c29a377f99b42c59721112cd2388cf27547fc84
Commit:     9c29a377f99b42c59721112cd2388cf27547fc84
Parent:     9ac0be9d4fa0c0ec7a447eeaa080bc13cf865319
Author:     Alexey Dobriyan <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 14 17:25:20 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Aug 14 17:25:20 2007 -0700

    [ECONET]: remove econet_packet_type on unload
    
    Steps to reproduce:
    
        modprobe econet
        rmmod econet
        modprobe econet
    
    Unable to handle kernel paging request at ffffffff8870a098 RIP:
     [<ffffffff8040bfb8>] dev_add_pack+0x48/0x90
    PGD 203067 PUD 207063 PMD 7817f067 PTE 0
    Oops: 0002 [1] PREEMPT SMP
    CPU 1
    Modules linked in: econet [maaaany]
    Pid: 10671, comm: modprobe Not tainted 2.6.23-rc3-bloat #6
    RIP: 0010:[<ffffffff8040bfb8>]  [<ffffffff8040bfb8>] dev_add_pack+0x48/0x90
    RSP: 0000:ffff810076293df8  EFLAGS: 00010202
    RAX: ffffffff88659090 RBX: ffffffff88659060 RCX: ffffffff8870a090
    RDX: 0000000000000080 RSI: ffffffff805ec660 RDI: ffff810078ce4680
    RBP: ffff810076293e08 R08: 0000000000000002 R09: 0000000000000000
    R10: ffffffff8040bf88 R11: 0000000000000001 R12: ffff810076293e18
    R13: 000000000000001b R14: ffff810076dd06b0 R15: ffffffff886590c0
    FS:  00002b96a525dae0(0000) GS:ffff81007e0e2138(0000) knlGS:0000000000000000
    CS:  0010 DS: 0000 ES: 0000 CR0: 000000008005003b
    CR2: ffffffff8870a098 CR3: 000000007bb67000 CR4: 00000000000026e0
    DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
    DR3: 0000000000000000 DR6: 00000000ffff0ff0 DR7: 0000000000000400
    Process modprobe (pid: 10671, threadinfo ffff810076292000, task 
ffff810078ce4680)
    Stack:  ffff810076dd06b0 0000000000000000 ffff810076293e38 ffffffff8865b180
     0000000000800000 0000000000000000 ffffffff886590c0 ffff810076dd01c8
     ffff810076293f78 ffffffff8026723c ffff810076293e48 ffffffff886590d8
    Call Trace:
     [<ffffffff8865b180>] :econet:econet_proto_init+0x180/0x1da
     [<ffffffff8026723c>] sys_init_module+0x15c/0x19e0
     [<ffffffff8020c13e>] system_call+0x7e/0x83
    
    
    Code: 48 89 41 08 48 89 82 e0 c5 5e 80 48 c7 c7 a0 08 5d 80 e8 f1
    RIP  [<ffffffff8040bfb8>] dev_add_pack+0x48/0x90
     RSP <ffff810076293df8>
    CR2: ffffffff8870a098
    
    Signed-off-by: Alexey Dobriyan <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 net/econet/af_econet.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/net/econet/af_econet.c b/net/econet/af_econet.c
index b5524f3..35c96bc 100644
--- a/net/econet/af_econet.c
+++ b/net/econet/af_econet.c
@@ -1146,6 +1146,9 @@ static void __exit econet_proto_exit(void)
                sock_release(udpsock);
 #endif
        unregister_netdevice_notifier(&econet_netdev_notifier);
+#ifdef CONFIG_ECONET_NATIVE
+       dev_remove_pack(&econet_packet_type);
+#endif
        sock_unregister(econet_family_ops.family);
        proto_unregister(&econet_proto);
 }
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to