[PATCH] pwm - Fix possible NULL derefrence.
Thierry Reding
thierry.reding at gmail.com
Sun Jan 29 23:10:20 PST 2017
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 at samsung.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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170130/cf76abbe/attachment.sig>
More information about the linux-arm-kernel
mailing list