diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2024-10-15 09:40:53 +0800 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+huawei@kernel.org> | 2025-01-08 14:59:59 +0000 |
commit | c4b7779abc6633677e6edb79e2809f4f61fde157 (patch) | |
tree | 9cf438176613f76f057f8d2344f2be69ffe3d5b2 /include/xen/events.h | |
parent | c36b9ad1a8add3c114e25fe167efa217a813b0c7 (diff) |
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: 46c15a4ff1f4 ("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>
Diffstat (limited to 'include/xen/events.h')
0 files changed, 0 insertions, 0 deletions