summaryrefslogtreecommitdiff
path: root/drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
diff options
context:
space:
mode:
authorSebastian Reichel <sre@kernel.org>2017-02-14 20:38:49 -0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-03-22 11:21:43 -0300
commitdb0f4691d9749d5dd758b8636290cec8fd88aa26 (patch)
tree0d064f4cc992770d0208b88fabcc8c963e14680d /drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c
parent974f4a385cbf7fe056b51b39f7ef8cbf9528a57c (diff)
[media] v4l: Allow calling v4l2_device_register_subdev_nodes() multiple times
Previously multiple calls to v4l2_device_register_subdev_nodes() ended up corrupting memory and leaking some, too. This patch changes the behaviour so that sub-devices the device nodes of which are already registered are ignored. Signed-off-by: Sebastian Reichel <sre@kernel.org> Signed-off-by: Ivaylo Dimitrov <ivo.g.dimitrov.75@gmail.com> Signed-off-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/platform/mtk-vcodec/mtk_vcodec_enc_drv.c')
0 files changed, 0 insertions, 0 deletions