summaryrefslogtreecommitdiff
path: root/mm/slab.h
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-12-05 18:00:09 +0300
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2018-12-11 02:46:53 +0300
commitecb4a353d3afd45b9bb30c85d03ee113a0589079 (patch)
treef4a4f4047b3a8cfa6c82d104baefc0f1599db5bc /mm/slab.h
parent2cb5e4743ab52d3a43ef25f229f6770fd9ca0065 (diff)
downloadlinux-ecb4a353d3afd45b9bb30c85d03ee113a0589079.tar.xz
rtc: pcf8523: don't return invalid date when battery is low
The RTC_VL_READ ioctl reports the low battery condition. Still, pcf8523_rtc_read_time() happily returns invalid dates in this case. Check the battery health on pcf8523_rtc_read_time() to avoid that. Reported-by: Erik Čuk <erik.cuk@domel.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'mm/slab.h')
0 files changed, 0 insertions, 0 deletions