Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1636078 > unrolled thread
| Started by | Alexandre Belloni <alexandre.belloni@free-electrons.com> |
|---|---|
| First post | 2017-05-05 01:00 +0200 |
| Last post | 2017-05-05 01:00 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH 1/1] rtc: gemini: add return value validation Alexandre Belloni <alexandre.belloni@free-electrons.com> - 2017-05-05 01:00 +0200
| From | Alexandre Belloni <alexandre.belloni@free-electrons.com> |
|---|---|
| Date | 2017-05-05 01:00 +0200 |
| Subject | Re: [PATCH 1/1] rtc: gemini: add return value validation |
| Message-ID | <tDxT3-1mh-13@gated-at.bofh.it> |
On 23/04/2017 at 20:48:07 +0800, Pan Bian wrote: > From: Pan Bian <bianpan2016@163.com> > > Function devm_ioremap() will return a NULL pointer if it fails to remap > IO address, and its return value should be validated before it is used. > However, in function gemini_rtc_probe(), its return value is not > checked. This may result in bad memory access bugs on future access, > e.g. calling the function gemini_rtc_read_time(). > > Signed-off-by: Pan Bian <bianpan2016@163.com> > --- > drivers/rtc/rtc-gemini.c | 2 ++ > 1 file changed, 2 insertions(+) > Applied, thanks. -- Alexandre Belloni, Free Electrons Embedded Linux and Kernel engineering http://free-electrons.com
Back to top | Article view | linux.kernel
csiph-web