[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170130071020.GE3585@ulmo.ba.sec>
Date: Mon, 30 Jan 2017 08:10:20 +0100
From: Thierry Reding <thierry.reding@...il.com>
To: Shailendra Verma <shailendra.v@...sung.com>
Cc: Maxime Ripard <maxime.ripard@...e-electrons.com>,
Chen-Yu Tsai <wens@...e.org>,
Stephen Warren <swarren@...dotorg.org>,
Alexandre Courbot <gnurou@...il.com>,
linux-pwm@...r.kernel.org, linux-arm-kernel@...ts.infradead.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] pwm - Fix possible NULL derefrence.
On Mon, Jan 30, 2017 at 10:22:33AM +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/pwm/pwm-sun4i.c | 4 ++++
> drivers/pwm/pwm-tegra.c | 5 +++++
> 2 files changed, 9 insertions(+)
Both of these drivers will only run on purely OF systems, so this check
is unnecessary.
Thierry
Download attachment "signature.asc" of type "application/pgp-signature" (834 bytes)
Powered by blists - more mailing lists