Re: [PATCH] Gpu: drm: tegra - Fix possible NULL derefrence.

From: Thierry Reding
Date: Mon Jan 30 2017 - 02:11:27 EST


On Mon, Jan 30, 2017 at 10:23:45AM +0530, Shailendra Verma wrote:
> of_match_device could return NULL, and so can cause a NULL
> pointer dereference later.
>
> Signed-off-by: Shailendra Verma <shailendra.v@xxxxxxxxxxx>
> ---
> drivers/gpu/drm/tegra/sor.c | 4 ++++
> 1 file changed, 4 insertions(+)

No, this will never happen on Tegra. If you reach the ->probe() function
this pointer is guaranteed to be non-NULL.

Thierry

Attachment: signature.asc
Description: PGP signature