Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -173,7 +173,7 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info)
		+ sizeof(struct mmp_overlay) * info->overlay_num;
	path = kzalloc(size, GFP_KERNEL);
	if (!path)
		goto failed;
		return NULL;

	/* path set */
	mutex_init(&path->access_ok);
@@ -219,11 +219,6 @@ struct mmp_path *mmp_register_path(struct mmp_path_info *info)

	mutex_unlock(&disp_lock);
	return path;

failed:
	kfree(path);
	mutex_unlock(&disp_lock);
	return NULL;
}
EXPORT_SYMBOL_GPL(mmp_register_path);