OSDN Git Service

media: entity: skip non-data link when removing reverse links
authorYunke Cao <yunkec@google.com>
Tue, 12 Apr 2022 06:23:13 +0000 (07:23 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sun, 24 Apr 2022 06:56:44 +0000 (07:56 +0100)
commit6008dea1c70e1a7df05c5e1bccd48e51ea29e670
tree040afbe04aa60a5b92f29b0cdcb18edf6a010535
parentd8fdfc66cfd720985480db42b939892e7bf65475
media: entity: skip non-data link when removing reverse links

The original implementation removes reverse links for any input link and
assumes the presense of sink/source.
It fails when the link is a not a data link.
media_entity_remove_links when there's an ancillary link can also fail.

We only need to remove reverse links for a data link.

Signed-off-by: Yunke Cao <yunkec@google.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/mc/mc-entity.c