]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Jun 2020 15:48:56 +0000 (17:48 +0200)
commitc3283b65a882b838995d7f77540ea2eb22729935
tree7fe89b3205817b77e535b54a7499a320f76b8be0
parent8fd0afd8bc11f841cc49dd383864cbb058b73fcb
mfd: wcd934x: Drop kfree for memory allocated with devm_kzalloc

[ Upstream commit 652b7b6740eb52d98377a881c7730e36997f00ab ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/wcd934x.c