diff options
author | Zijun Hu <quic_zijuhu@quicinc.com> | 2024-07-02 16:51:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-07-04 12:34:50 +0200 |
commit | bd50a974097bb82d52a458bd3ee39fb723129a0c (patch) | |
tree | ff3ae3b73b4ba1ee398a968a373d64d47faf3960 /drivers/message | |
parent | devres: Fix devm_krealloc() wasting memory (diff) | |
download | linux-bd50a974097bb82d52a458bd3ee39fb723129a0c.tar.xz linux-bd50a974097bb82d52a458bd3ee39fb723129a0c.zip |
devres: Fix memory leakage caused by driver API devm_free_percpu()
It will cause memory leakage when use driver API devm_free_percpu()
to free memory allocated by devm_alloc_percpu(), fixed by using
devres_release() instead of devres_destroy() within devm_free_percpu().
Fixes: ff86aae3b411 ("devres: add devm_alloc_percpu()")
Cc: stable@vger.kernel.org
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/1719931914-19035-3-git-send-email-quic_zijuhu@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/message')
0 files changed, 0 insertions, 0 deletions