提交 31fa0d12 编写于 作者: E Ezequiel Garcia 提交者: Mauro Carvalho Chehab

media: stk1160: Add missing calls to mutex_destroy

The mutexes are not being destroyed in the release path. Fix it.
Signed-off-by: NEzequiel Garcia <ezequiel@collabora.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab+samsung@kernel.org>
上级 9141386c
...@@ -167,6 +167,8 @@ static void stk1160_release(struct v4l2_device *v4l2_dev) ...@@ -167,6 +167,8 @@ static void stk1160_release(struct v4l2_device *v4l2_dev)
v4l2_ctrl_handler_free(&dev->ctrl_handler); v4l2_ctrl_handler_free(&dev->ctrl_handler);
v4l2_device_unregister(&dev->v4l2_dev); v4l2_device_unregister(&dev->v4l2_dev);
mutex_destroy(&dev->v4l_lock);
mutex_destroy(&dev->vb_queue_lock);
kfree(dev->alt_max_pkt_size); kfree(dev->alt_max_pkt_size);
kfree(dev); kfree(dev);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册