diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2020-04-27 12:29:22 +0000 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2020-05-26 10:51:21 +0100 |
commit | 652b7b6740eb52d98377a881c7730e36997f00ab (patch) | |
tree | e6a50903008b758d10a3f4fb0f1784e5f4039884 /drivers/mfd/wcd934x.c | |
parent | 97eda5dcc2cde5dcc778bef7a9344db3b6bf8ef5 (diff) | |
download | linux-652b7b6740eb52d98377a881c7730e36997f00ab.tar.gz |
mfd: wcd934x: Drop kfree for memory allocated with devm_kzalloc
It's not necessary to free memory allocated with devm_kzalloc
and using kfree leads to a double free.
Fixes: 6ac7e4d7ad70 ("mfd: wcd934x: Add support to wcd9340/wcd9341 codec")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'drivers/mfd/wcd934x.c')
-rw-r--r-- | drivers/mfd/wcd934x.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/mfd/wcd934x.c b/drivers/mfd/wcd934x.c index 90341f3c6810..da910302d51a 100644 --- a/drivers/mfd/wcd934x.c +++ b/drivers/mfd/wcd934x.c @@ -280,7 +280,6 @@ static void wcd934x_slim_remove(struct slim_device *sdev) regulator_bulk_disable(WCD934X_MAX_SUPPLY, ddata->supplies); mfd_remove_devices(&sdev->dev); - kfree(ddata); } static const struct slim_device_id wcd934x_slim_id[] = { |