diff options
author | 2024-10-29 20:39:57 +0800 | |
---|---|---|
committer | 2024-12-13 10:51:39 +0100 | |
commit | f8fd0968eff52cf092c0d517d17507ea2f6e5ea5 (patch) | |
tree | 36a8d45f4424ad6822af9649bb0ee0615375f159 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | drm/panel: himax-hx83102: Add a check to prevent NULL pointer dereference (diff) | |
download | wireguard-linux-f8fd0968eff52cf092c0d517d17507ea2f6e5ea5.tar.xz wireguard-linux-f8fd0968eff52cf092c0d517d17507ea2f6e5ea5.zip |
drm/panel: novatek-nt35950: fix return value check in nt35950_probe()
mipi_dsi_device_register_full() never returns NULL pointer, it
will return ERR_PTR() when it fails, so replace the check with
IS_ERR().
Fixes: 623a3531e9cf ("drm/panel: Add driver for Novatek NT35950 DSI DriverIC panels")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://lore.kernel.org/r/20241029123957.1588-1-yangyingliang@huaweicloud.com
Signed-off-by: Neil Armstrong <neil.armstrong@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20241029123957.1588-1-yangyingliang@huaweicloud.com
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions