Home
last modified time | relevance | path

Searched hist:ab8d438565b932b0430ed99f5ba87d78351579b1 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/video/drm/
H A Drockchip_display.cab8d438565b932b0430ed99f5ba87d78351579b1 Thu Mar 21 12:49:00 UTC 2024 Zhang Yubing <yubing.zhang@rock-chips.com> video/drm: display: check the string pointer before use

if there are no compatible property define, the dev_read_string
function will return a NULL pointer. And the strcmp will not
check whether the poniter is NULL or not. So it's better to
check the string pointer before use to avoid NULL pointer issue
happen.

strcmp
compatible = dev_read_string(conn->dev, "compatible");
Signed-off-by: Zhang Yubing <yubing.zhang@rock-chips.com>
Change-Id: I19a376a7c68a482a76afad51e9ffb400611de2b0