2
0
mirror of git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-09-04 20:19:47 +08:00
linux/drivers/media/platform/nuvoton
Zhen Lei c4b7779abc media: nuvoton: Fix an error check in npcm_video_ece_init()
When function of_find_device_by_node() fails, it returns NULL instead of
an error code. So the corresponding error check logic should be modified
to check whether the return value is NULL and set the error code to be
returned as -ENODEV.

Fixes: 46c15a4ff1 ("media: nuvoton: Add driver for NPCM video capture and encoding engine")
Cc: stable@vger.kernel.org
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20241015014053.669-1-thunder.leizhen@huawei.com
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
2025-01-08 14:59:59 +00:00
..
Kconfig media: nuvoton: VIDEO_NPCM_VCD_ECE should depend on ARCH_NPCM 2023-10-27 11:44:19 +02:00
Makefile
npcm-regs.h
npcm-video.c media: nuvoton: Fix an error check in npcm_video_ece_init() 2025-01-08 14:59:59 +00:00