]> git.baikalelectronics.ru Git - uboot.git/commit
drivers: rtc: fix null pointer access in armada38x_rtc_reset
authorFrancois Berder <fberder@outlook.fr>
Mon, 28 Feb 2022 09:31:45 +0000 (10:31 +0100)
committerStefan Roese <sr@denx.de>
Fri, 4 Mar 2022 07:38:05 +0000 (08:38 +0100)
commit6a6d9735d7bfd941e2a181544ab6d4f0a615ed4f
tree6cd31b2e957201e5de250cba13303c84467b6405
parent362798f7cbc4530d7654c147cb73a646a36f6d24
drivers: rtc: fix null pointer access in armada38x_rtc_reset

Replace null pointer by pointer to device registers when calling
armada38x_rtc_write.

Signed-off-by: Francois Berder <fberder@outlook.fr>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/rtc/armada38x.c