media: vicodec: correctly support unbinding of the driver
authorHans Verkuil <hverkuil@xs4all.nl>
Fri, 3 May 2019 14:22:49 +0000 (10:22 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Tue, 28 May 2019 16:25:08 +0000 (12:25 -0400)
commit0783525fff6e524532fd613f788e6ce14edba89d
treebb263dc75091f3be735407cbeb6e476b0fdc405a
parentbfe819509f4eb58288796e1d3aefd7d18cc6d9af
media: vicodec: correctly support unbinding of the driver

Unbinding the driver while streaming caused the driver to hang.

The cause of this was failing to use the v4l2_device release
function and the use of devm_kmalloc for the state structure.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/platform/vicodec/vicodec-core.c