commit | 52bf4a900d9cede3eb14982d0f2c5e6db6d97cc3 | [log] [tgz] |
---|---|---|
author | Alexandre Belloni <alexandre.belloni@bootlin.com> | Wed Apr 25 12:14:39 2018 +0200 |
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | Thu Sep 27 12:01:45 2018 +0200 |
tree | 906874b02bd01b43125047dc82aa700226c94cdb | |
parent | 4451d3f59f2a6f95e5d205c2d04ea072955d080d [diff] |
clocksource/drivers/timer-atmel-pit: Properly handle error cases The smatch utility reports a possible leak: smatch warnings: drivers/clocksource/timer-atmel-pit.c:183 at91sam926x_pit_dt_init() warn: possible memory leak of 'data' Ensure data is freed before exiting with an error. Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Cc: stable@vger.kernel.org Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>