linux/drivers/media
Sylwester Nawrocki 7349cec14d [media] media: Add a function removing all links of a media entity
This function allows to remove all media entity's links to other
entities, leaving no references to a media entity's links array
at its remote entities.
Currently, when a driver of some entity is removed it will free its
media entities links[] array, leaving dangling pointers at other
entities that are part of same media graph. This is troublesome when
drivers of a media device entities are in separate kernel modules,
removing only some modules will leave others in an incorrect state.
This function is intended to be used when an entity is being
unregistered from a media device.
With an assumption that normally the media links should be created
between media entities registered to a media device, with the graph
mutex held.

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Reviewed-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
2013-06-19 08:59:54 -03:00
..
common [media] tveeprom: remove v4l2-chip-ident.h include 2013-06-17 08:48:03 -03:00
dvb-core [media] Add support for Crypto Redi PC50A device (rtl2832u + FC0012 tuner) 2013-06-08 21:59:59 -03:00
dvb-frontends [media] au8522_decoder: remove g_chip_ident op 2013-06-17 08:48:39 -03:00
firewire [media] demux.h: Remove duplicated enum 2013-04-08 06:53:15 -03:00
i2c [media] smiapp: Clean up media entity after unregistering subdev 2013-06-19 08:59:18 -03:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] bw-qcam: fix timestamp handling 2013-05-27 09:30:19 -03:00
pci [media] drivers/media/pci/mantis/mantis_cards: Convert to module_pci_driver 2013-06-17 13:15:39 -03:00
platform [media] fsl-viu: remove current_norm 2013-06-17 09:35:07 -03:00
radio [media] radio-sf16fmi: add control event and prio support 2013-06-17 09:33:10 -03:00
rc [media] rc: gpio-ir-recv: Remove redundant platform_set_drvdata() 2013-05-27 09:30:59 -03:00
tuners [media] r820t: do not double-free fe->tuner_priv in r820t_release() 2013-06-08 19:59:36 -03:00
usb [media] pvrusb2: Cocci spatch "memdup.spatch" 2013-06-17 13:17:35 -03:00
v4l2-core [media] v4l2-ioctl: clarify querystd comment 2013-06-17 09:45:42 -03:00
Kconfig Merge branch 'v4l_for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-media 2013-02-24 17:35:10 -08:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c [media] media: info leak in __media_device_enum_links() 2013-06-12 18:52:45 -03:00
media-devnode.c [media] media: Add 64--32 bit compat ioctl handler 2013-03-18 20:44:36 -03:00
media-entity.c [media] media: Add a function removing all links of a media entity 2013-06-19 08:59:54 -03:00