diff options
| author | Zhen Lei <[email protected]> | 2024-10-15 01:40:53 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2025-01-08 14:59:59 +0000 |
| commit | c4b7779abc6633677e6edb79e2809f4f61fde157 (patch) | |
| tree | 9cf438176613f76f057f8d2344f2be69ffe3d5b2 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
| parent | media: dvb-usb-v2: af9035: fix ISO C90 compilation error on af9035_i2c_master... (diff) | |
| download | kernel-c4b7779abc6633677e6edb79e2809f4f61fde157.tar.gz kernel-c4b7779abc6633677e6edb79e2809f4f61fde157.zip | |
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: [email protected]
Signed-off-by: Zhen Lei <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions
