summaryrefslogtreecommitdiff
path: root/ipc/util.c
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2018-12-05 18:00:09 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-06-19 09:21:00 +0300
commit3177ab541ba8b875d0cdb85e9813f5402e59714d (patch)
treefa353c3724df3f32ee97bf324d7f8d42ce712e5c /ipc/util.c
parent488beeebddaf563aed96c27aa78c520a00f1a30f (diff)
downloadlinux-3177ab541ba8b875d0cdb85e9813f5402e59714d.tar.xz
rtc: pcf8523: don't return invalid date when battery is low
commit ecb4a353d3afd45b9bb30c85d03ee113a0589079 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'ipc/util.c')
0 files changed, 0 insertions, 0 deletions