Colin Ian King 1a37c34811 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>
2017-07-31 00:17:46 +02:00
..
2017-07-07 13:14:14 +02:00
2017-07-07 13:14:14 +02:00
2017-07-07 13:14:14 +02:00
2017-07-07 13:14:14 +02:00
2017-03-09 01:29:17 +01:00
2017-07-07 13:14:14 +02:00
2016-05-20 12:33:51 +02:00
2015-11-10 10:01:21 -08:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2015-09-05 13:19:06 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2017-01-11 17:23:04 +01:00
2017-06-24 07:58:09 +02:00
2016-05-20 12:33:51 +02:00
2016-05-20 12:33:51 +02:00
2017-07-07 13:14:19 +02:00
2013-04-19 13:51:25 +02:00
2017-07-31 00:17:44 +02:00
2017-04-22 18:01:15 +02:00
2016-05-20 12:33:51 +02:00
2017-06-03 10:52:04 +02:00
2016-11-30 21:21:33 +01:00
2016-05-20 12:33:51 +02:00