Commit 4ed0156f authored by David Woodhouse's avatar David Woodhouse

[JFFS2] Fix more breakage caused by janitorial meddling.

jffs2_zlib_exit() and free_workspaces() shouldn't be marked __exit because
they get called in the error case from the init functions.
Signed-off-by: default avatarDavid Woodhouse <dwmw2@infradead.org>
parent 3bcc86f5
...@@ -60,7 +60,7 @@ static int __init alloc_workspaces(void) ...@@ -60,7 +60,7 @@ static int __init alloc_workspaces(void)
return 0; return 0;
} }
static void __exit free_workspaces(void) static void free_workspaces(void)
{ {
vfree(def_strm.workspace); vfree(def_strm.workspace);
vfree(inf_strm.workspace); vfree(inf_strm.workspace);
...@@ -216,7 +216,7 @@ int __init jffs2_zlib_init(void) ...@@ -216,7 +216,7 @@ int __init jffs2_zlib_init(void)
return ret; return ret;
} }
void __exit jffs2_zlib_exit(void) void jffs2_zlib_exit(void)
{ {
jffs2_unregister_compressor(&jffs2_zlib_comp); jffs2_unregister_compressor(&jffs2_zlib_comp);
free_workspaces(); free_workspaces();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment