diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-03-14 08:56:30 +0100 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@free-electrons.com> | 2017-03-16 23:00:07 +0100 |
commit | 65e9e65cebbea755db638875a44b227a1027570e (patch) | |
tree | 64dc05fb503498939f9709c97361385d4d724175 /lib/fdt_strerror.c | |
parent | rtc: wm8350: Remove unused to_wm8350_from_rtc_dev (diff) | |
download | linux-65e9e65cebbea755db638875a44b227a1027570e.tar.xz linux-65e9e65cebbea755db638875a44b227a1027570e.zip |
rtc: cpcap: kfreeing devm allocated memory
We shouldn't kfree(rtc) because is devm_ managed memory. It leads to a
double free.
Fixes: dd3bf50b35e3 ("rtc: cpcap: new rtc driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-By: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Diffstat (limited to 'lib/fdt_strerror.c')
0 files changed, 0 insertions, 0 deletions