]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: vpif_capture: fix OF node reference imbalance
authorJohan Hovold <johan@kernel.org>
Tue, 7 Apr 2026 10:08:31 +0000 (12:08 +0200)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Tue, 5 May 2026 14:57:02 +0000 (16:57 +0200)
commit2282f979560af6bbc8ee2c1ee8663197312cee5b
tree513979f11e84e851096d2c6e8ac094de4d1c50f9
parentfe90217607fc82010713aa5eb4d2518300fefe6a
media: vpif_capture: fix OF node reference imbalance

The driver reuses the OF node of the parent device but fails to take
another reference to balance the one dropped by the platform bus code
when unbinding the parent and releasing the child devices.

Fix this by using the intended helper for reusing OF nodes.

Fixes: 4a5f8ae50b66 ("[media] davinci: vpif_capture: get subdevs from DT when available")
Cc: stable@vger.kernel.org # 4.13
Cc: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/ti/davinci/vpif_capture.c