]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: wcd934x: Drop kfree for memory allocated with devm_kzalloc
authorWei Yongjun <weiyongjun1@huawei.com>
Mon, 27 Apr 2020 12:29:22 +0000 (12:29 +0000)
committerLee Jones <lee.jones@linaro.org>
Tue, 26 May 2020 09:51:21 +0000 (10:51 +0100)
commit47416d4157d490d9aa204f4e0de68cf92a2c3003
treee6a50903008b758d10a3f4fb0f1784e5f4039884
parent5ea461e452a313c29899e02bc75286ff06337ac1
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: 0d9de93b80a1 ("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>
drivers/mfd/wcd934x.c