media: stk1160: Add missing calls to mutex_destroy
The mutexes are not being destroyed in the release path. Fix it. Signed-off-by: Ezequiel Garcia <ezequiel@collabora.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
This commit is contained in:
parent
9141386c69
commit
31fa0d12c4
|
@ -167,6 +167,8 @@ static void stk1160_release(struct v4l2_device *v4l2_dev)
|
|||
|
||||
v4l2_ctrl_handler_free(&dev->ctrl_handler);
|
||||
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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue