summaryrefslogtreecommitdiff
path: root/drivers/rtc/rtc-ds1307.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-07-19 19:57:02 +0300
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>2017-07-31 01:17:46 +0300
commit1a37c34811f6d115063042a17211cd70ab560ddd (patch)
tree61de99dbb3469748df0ea9880e58d6c4ded0a4c8 /drivers/rtc/rtc-ds1307.c
parent319ff835d6136842c660011047a480119bd7cba8 (diff)
downloadlinux-1a37c34811f6d115063042a17211cd70ab560ddd.tar.xz
rtc: sun6i: ensure clk_data is kfree'd on error
There are two error return paths that do not kfree clk_data and we end up with a memory leak. Fix these with a kfree error exit path. Detected by CoverityScan, CID#1402959 ("Resource Leak") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1307.c')
0 files changed, 0 insertions, 0 deletions