提交 f5886d64 编写于 作者: S sunman4

修复LCSL送检内核崩溃问题

Signed-off-by: Nsunman4 <sunman4@huawei.com>
上级 8b4d746e
......@@ -172,6 +172,8 @@ int __init jffs2_zlib_init(void)
if (ret)
return ret;
pthread_mutex_init(&deflate_mutex, NULL);
pthread_mutex_init(&inflate_mutex, NULL);
ret = jffs2_register_compressor(&jffs2_zlib_comp);
if (ret)
free_workspaces();
......@@ -181,6 +183,8 @@ int __init jffs2_zlib_init(void)
void jffs2_zlib_exit(void)
{
pthread_mutex_destroy(&deflate_mutex);
pthread_mutex_destroy(&inflate_mutex);
jffs2_unregister_compressor(&jffs2_zlib_comp);
free_workspaces();
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册