summaryrefslogtreecommitdiff
path: root/fs/nfs/write.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2024-11-13 12:30:32 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-12-05 14:03:05 +0100
commitc5b75986dbae69f58cab94f05d2d28a24f3b2c34 (patch)
tree86d5ca518035ed96524ee9b40fb94a75a8df37fd /fs/nfs/write.c
parent2cdb416de8b5795fd25fadcb69e1198b6df6d8cc (diff)
downloadlinux-c5b75986dbae69f58cab94f05d2d28a24f3b2c34.tar.gz
linux-c5b75986dbae69f58cab94f05d2d28a24f3b2c34.tar.bz2
linux-c5b75986dbae69f58cab94f05d2d28a24f3b2c34.zip
rtc: rzn1: fix BCD to rtc_time conversion errors
[ Upstream commit 55727188dfa3572aecd946e58fab9e4a64f06894 ] tm_mon describes months from 0 to 11, but the register contains BCD from 1 to 12. tm_year contains years since 1900, but the BCD contains 20XX. Apply the offsets when converting these numbers. Fixes: deeb4b5393e1 ("rtc: rzn1: Add new RTC driver") Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Link: https://lore.kernel.org/r/20241113113032.27409-1-wsa+renesas@sang-engineering.com Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/nfs/write.c')
0 files changed, 0 insertions, 0 deletions