Skip to content
Commit 8d7d33f6 authored by Wang Xiaojun's avatar Wang Xiaojun Committed by Laurent Pinchart
Browse files

drm: rcar-du: Fix the return check of of_parse_phandle and of_find_device_by_node



of_parse_phandle and of_find_device_by_node may return NULL
which cannot be checked by IS_ERR.

Fixes: 8de707ae ("drm: rcar-du: kms: Initialize CMM instances")
Signed-off-by: default avatarWang Xiaojun <wangxiaojun11@huawei.com>
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Acked-by: default avatarJacopo Mondi <jacopo+renesas@jmondi.org>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarKieran Bingham <kieran.bingham+renesas@ideasonboard.com>

[Replace -ENODEV with -EINVAL]

Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
parent 3a608bcb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment