lkml.org 
[lkml]   [2008]   [Feb]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] 9p: fix oops on rmmod
Unloadable modules should just skip module_exit() hook ;-)

Signed-off-by: Alexey Dobriyan <adobriyan@sw.ru>
---

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@ionkov.net>");
MODULE_AUTHOR("Eric Van Hensbergen <ericvh@gmail.com>");


\
 
 \ /
  Last update: 2008-02-20 09:53    [W:0.278 / U:0.268 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site