Skip to content

Commit

Permalink
[JFFS2] Fix more breakage caused by janitorial meddling.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Woodhouse committed Jun 9, 2006
1 parent 3bcc86f commit 4ed0156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fs/jffs2/compr_zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ static int __init alloc_workspaces(void)
return 0;
}

static void __exit free_workspaces(void)
static void free_workspaces(void)
{
vfree(def_strm.workspace);
vfree(inf_strm.workspace);
Expand Down Expand Up @@ -216,7 +216,7 @@ int __init jffs2_zlib_init(void)
return ret;
}

void __exit jffs2_zlib_exit(void)
void jffs2_zlib_exit(void)
{
jffs2_unregister_compressor(&jffs2_zlib_comp);
free_workspaces();
Expand Down

0 comments on commit 4ed0156

Please sign in to comment.