Commit 8a31aa41 authored by ZhaoLong Wang's avatar ZhaoLong Wang
Browse files

hikey9xx: Fixed incorrect use of kfree to free sreg

hulk inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I6GS86


CVE: NA

--------------------------------

When memory allocated by using the devm_kmalloc(). the matching
release function should use the devm_kfree() function instead of
the kfree() function.

@sreg allocated:
hi6421_spmi_regulator_probe
  hi6421_spmi_regulator_probe_ldo

@sreg freed:
hi6421_spmi_regulator_remove

Signed-off-by: default avatarZhaoLong Wang <wangzhaolong1@huawei.com>
parent 77566d2b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment