Commit 4ac8bd61 authored by Dan Carpenter's avatar Dan Carpenter Committed by Tomi Valkeinen

video: mmp: delete a stray mutex_unlock()

We aren't holding the disp_lock so we shouldn't release it.
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarHaojian Zhuang <haojian.zhuang@gmail.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent c3235bfc
...@@ -173,7 +173,7 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info) ...@@ -173,7 +173,7 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info)
+ sizeof(struct mmp_overlay) * info->overlay_num; + sizeof(struct mmp_overlay) * info->overlay_num;
path = kzalloc(size, GFP_KERNEL); path = kzalloc(size, GFP_KERNEL);
if (!path) if (!path)
goto failed; return NULL;
/* path set */ /* path set */
mutex_init(&path->access_ok); mutex_init(&path->access_ok);
...@@ -219,11 +219,6 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info) ...@@ -219,11 +219,6 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info)
mutex_unlock(&disp_lock); mutex_unlock(&disp_lock);
return path; return path;
failed:
kfree(path);
mutex_unlock(&disp_lock);
return NULL;
} }
EXPORT_SYMBOL_GPL(mmp_register_path); EXPORT_SYMBOL_GPL(mmp_register_path);
......
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