diff options
| author | David Woodhouse <dwmw2@infradead.org> | 2006-06-09 10:06:42 -0400 |
|---|---|---|
| committer | David Woodhouse <dwmw2@infradead.org> | 2006-06-09 10:06:42 -0400 |
| commit | 4ed0156f774cf50252e7f51032d1cc857fe86879 (patch) | |
| tree | 5b8e8b038309ce99d3a88e600f46b66ca7392b94 | |
| parent | 3bcc86f507f5a0b6f5bfa312f37ec33711558acb (diff) | |
[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: David Woodhouse <dwmw2@infradead.org>
| -rw-r--r-- | fs/jffs2/compr_zlib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/jffs2/compr_zlib.c b/fs/jffs2/compr_zlib.c index d43cbac4fb9b..5c63e0cdcf4c 100644 --- a/fs/jffs2/compr_zlib.c +++ b/fs/jffs2/compr_zlib.c | |||
| @@ -60,7 +60,7 @@ static int __init alloc_workspaces(void) | |||
| 60 | return 0; | 60 | return 0; |
| 61 | } | 61 | } |
| 62 | 62 | ||
| 63 | static void __exit free_workspaces(void) | 63 | static void free_workspaces(void) |
| 64 | { | 64 | { |
| 65 | vfree(def_strm.workspace); | 65 | vfree(def_strm.workspace); |
| 66 | vfree(inf_strm.workspace); | 66 | vfree(inf_strm.workspace); |
| @@ -216,7 +216,7 @@ int __init jffs2_zlib_init(void) | |||
| 216 | return ret; | 216 | return ret; |
| 217 | } | 217 | } |
| 218 | 218 | ||
| 219 | void __exit jffs2_zlib_exit(void) | 219 | void jffs2_zlib_exit(void) |
| 220 | { | 220 | { |
| 221 | jffs2_unregister_compressor(&jffs2_zlib_comp); | 221 | jffs2_unregister_compressor(&jffs2_zlib_comp); |
| 222 | free_workspaces(); | 222 | free_workspaces(); |
