]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: nuvoton: Fix reference handling of ece_node
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 24 Feb 2025 07:03:54 +0000 (07:03 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:37 +0000 (10:15 +0200)
commit4b1bdaadbf19f6c0d1a8d7e43418eb97c224a017
tree5f92e134cdce9cabcb11aa6ff9e7d416e251ca3a
parente22fa60bcd85bb392422bf9f3210694893dc1347
media: nuvoton: Fix reference handling of ece_node

commit 8ba4ef40ad6ca62368292a69855324213181abfb upstream.

Make sure all the code paths call of_node_put().

Instead of manually calling of_node_put, use the __free macros/helpers.

Cc: stable@vger.kernel.org
Fixes: 46c15a4ff1f4 ("media: nuvoton: Add driver for NPCM video capture and encoding engine")
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/platform/nuvoton/npcm-video.c