Re: [PATCH] pwm - Fix possible NULL derefrence.
From: Thierry Reding
Date: Mon Jan 30 2017 - 02:10:41 EST
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@xxxxxxxxxxx>
> ---
> 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
Attachment:
signature.asc
Description: PGP signature