summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-spear.c
diff options
context:
space:
mode:
authorMiaoqian Lin <linmq006@gmail.com>2022-03-09 09:22:25 +0000
committerAlexandre Belloni <alexandre.belloni@bootlin.com>2022-03-29 22:45:50 +0200
commit4b2dc39ca024990abe36ad5d145c4fe0c06afd34 (patch)
tree5b62ad8e7fb0bec7ef3037df56d44be4d3020498 /drivers/rtc/rtc-spear.c
parent3ae8fd41573af4fb3a490c9ed947fc936ba87190 (diff)
downloadlwn-4b2dc39ca024990abe36ad5d145c4fe0c06afd34.tar.gz
lwn-4b2dc39ca024990abe36ad5d145c4fe0c06afd34.zip
rtc: gamecube: Fix refcount leak in gamecube_rtc_read_offset_from_sram
The of_find_compatible_node() function returns a node pointer with refcount incremented, We should use of_node_put() on it when done Add the missing of_node_put() to release the refcount. Fixes: 86559400b3ef ("rtc: gamecube: Add a RTC driver for the GameCube, Wii and Wii U") Signed-off-by: Miaoqian Lin <linmq006@gmail.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Link: https://lore.kernel.org/r/20220309092225.6930-1-linmq006@gmail.com
Diffstat (limited to 'drivers/rtc/rtc-spear.c')
0 files changed, 0 insertions, 0 deletions