[PATCH] 9p: fix oops on rmmod



Unloadable modules should just skip module_exit() hook ;-)

Signed-off-by: Alexey Dobriyan <adobriyan@xxxxx>
---

net/9p/trans_fd.c | 7 -------
1 file changed, 7 deletions(-)

--- a/net/9p/trans_fd.c
+++ b/net/9p/trans_fd.c
@@ -459,14 +459,7 @@ static int __init p9_trans_fd_init(void)

return 1;
}
-
-static void __exit p9_trans_fd_exit(void) {
- printk(KERN_ERR "Removal of 9p transports not implemented\n");
- BUG();
-}
-
module_init(p9_trans_fd_init);
-module_exit(p9_trans_fd_exit);

MODULE_AUTHOR("Latchesar Ionkov <lucho@xxxxxxxxxx>");
MODULE_AUTHOR("Eric Van Hensbergen <ericvh@xxxxxxxxx>");

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



Relevant Pages

  • Re: [PATCH] mm: kill page_queue_congested()
    ... Subject: mm: kill page_queue_congested ... Or we can hook it up in vmscan, and skip congested pages on high scan ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [PATCH 4/7] unmap_page_range for hugetlb
    ... unmap_vmasis the sole caller of unmap_page_range. ... sense to move the hook inside of unmap_page_range? ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: security_file_lock cmd argument
    ... Subject: security_file_lock cmd argument ... this hook mediates both flock and fcntl style locks. ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [PATCH]: first proposal for pci resume quirk interface
    ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: PATCH] serial: convert early_uart to earlycon for 8250
    ... the additional hook in serial_core ... Is this a debugging printk? ... More majordomo info at http://vger.kernel.org/majordomo-info.html ... Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)