Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1569432
| From | Thierry Reding <thierry.reding@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] pwm - Fix possible NULL derefrence. |
| Date | 2017-01-30 08:20 +0100 |
| Message-ID | <t5epP-15B-7@gated-at.bofh.it> (permalink) |
| References | <t5cel-804-9@gated-at.bofh.it> <t5cel-804-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
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@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
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] pwm - Fix possible NULL derefrence. Shailendra Verma <shailendra.v@samsung.com> - 2017-01-30 06:00 +0100 Re: [PATCH] pwm - Fix possible NULL derefrence. Thierry Reding <thierry.reding@gmail.com> - 2017-01-30 08:20 +0100
csiph-web