linux_dsm_epyc7002/drivers/media/v4l2-core
Laurent Pinchart 317efce991 [media] v4l: Reset subdev v4l2_dev field to NULL if registration fails
When subdev registration fails the subdev v4l2_dev field is left to a
non-NULL value. Later calls to v4l2_device_unregister_subdev() will
consider the subdev as registered and will module_put() the subdev
module without any matching module_get().
Fix this by setting the subdev v4l2_dev field to NULL in
v4l2_device_register_subdev() when the function fails.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@vger.kernel.org
Acked-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-01-05 01:25:22 -02:00
..
Kconfig [media] v4l: vb2-vmalloc: add support for dmabuf importing 2012-11-25 17:18:58 -02:00
Makefile [media] Cleanup media Kconfig files 2012-08-21 07:55:47 -03:00
tuner-core.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
v4l2-common.c [media] v4l: Helper function for obtaining timestamps 2012-12-21 10:53:43 -02:00
v4l2-compat-ioctl32.c [media] v4l: add buffer exporting via dmabuf 2012-11-25 17:20:47 -02:00
v4l2-ctrls.c [media] v4l2-ctrls: add a notify callback 2013-01-05 00:49:54 -02:00
v4l2-dev.c [media] v4l: add buffer exporting via dmabuf 2012-11-25 17:20:47 -02:00
v4l2-device.c [media] v4l: Reset subdev v4l2_dev field to NULL if registration fails 2013-01-05 01:25:22 -02:00
v4l2-event.c [media] v4l, smiapp, smiapp-pll, adp1653: Update contact information 2012-11-21 13:34:50 -02:00
v4l2-fh.c [media] v4l, smiapp, smiapp-pll, adp1653: Update contact information 2012-11-21 13:34:50 -02:00
v4l2-int-device.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
v4l2-ioctl.c [media] v4l: add buffer exporting via dmabuf 2012-11-25 17:20:47 -02:00
v4l2-mem2mem.c [media] media: mem2mem: make reference to struct m2m_ops in the core const 2012-12-19 13:35:18 -02:00
v4l2-subdev.c [media] v4l: Don't warn during link validation when encountering a V4L2 devnode 2012-11-22 12:09:49 -02:00
videobuf2-core.c [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
videobuf2-dma-contig.c Revert "videobuf2-dma-contig: Only support if HAVE_GENERIC_DMA_COHERENT" 2012-11-27 09:35:02 -02:00
videobuf2-dma-sg.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
videobuf2-memops.c [media] v4l: vb2-dma-contig: let mmap method to use dma_mmap_coherent call 2012-11-25 17:20:25 -02:00
videobuf2-vmalloc.c [media] v4l: vb2-vmalloc: add support for dmabuf importing 2012-11-25 17:18:58 -02:00
videobuf-core.c [media] v4l: Tell user space we're using monotonic timestamps 2012-12-21 11:20:51 -02:00
videobuf-dma-contig.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
videobuf-dma-sg.c mm: kill vma flag VM_RESERVED and mm->reserved_vm counter 2012-10-09 16:22:19 +09:00
videobuf-dvb.c [media] v4l: move v4l2 core into a separate directory 2012-08-13 23:02:38 -03:00
videobuf-vmalloc.c mm: kill vma flag VM_RESERVED and mm->reserved_vm counter 2012-10-09 16:22:19 +09:00