[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170130071112.GF3585@ulmo.ba.sec>
Date: Mon, 30 Jan 2017 08:11:12 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: Shailendra Verma <shailendra.v@...sung.com>
Cc: David Airlie <airlied@...ux.ie>,
Stephen Warren <swarren@...dotorg.org>,
Alexandre Courbot <gnurou@...il.com>,
dri-devel@...ts.freedesktop.org, linux-tegra@...r.kernel.org,
linux-kernel@...r.kernel.org, p.shailesh@...sung.com,
ashish.kalra@...sung.com,
Shailendra Verma <shailendra.capricorn@...il.com>
Subject: Re: [PATCH] Gpu: drm: tegra - Fix possible NULL derefrence.
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@...sung.com>
> ---
> 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
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists