diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-11-22 20:16:18 +0300 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-12-19 01:05:10 +0300 |
commit | e9982024619c7f8f8cce97b0038a0075b135089c (patch) | |
tree | c3a6510272d19ac97b44b316d6be4ae775de6c4d /Kbuild | |
parent | 6f2a71a31afd738af446c802e1ed40365afa55b8 (diff) | |
download | linux-e9982024619c7f8f8cce97b0038a0075b135089c.tar.xz |
rtc: sun6i: ensure rtc is kfree'd on error
The error return path on clk_data allocation failure does not kfree
the allocated rtc object. Fix this with a kfree of rtc on the error
exit path.
Detected by CoverityScan, CID#1452264 ("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 'Kbuild')
0 files changed, 0 insertions, 0 deletions