aboutsummaryrefslogtreecommitdiff
path: root/lib/test-string_helpers.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-11-04 11:39:45 +0800
committerThomas Bogendoerfer <[email protected]>2022-11-22 13:09:36 +0100
commitc5ed1fe0801f0c66b0fbce2785239a5664629057 (patch)
tree65c06da3da63094c0ceca895a543a518d2328543 /lib/test-string_helpers.c
parent5822e8cc84ee37338ab0bdc3124f6eec04dc232d (diff)
MIPS: vpe-cmp: fix possible memory leak while module exiting
dev_set_name() allocates memory for name, it need be freed when module exiting, call put_device() to give up reference, so that it can be freed in kobject_cleanup() when the refcount hit to 0. The vpe_device is static, so remove kfree() from vpe_device_release(). Fixes: 17a1d523aa58 ("MIPS: APRP: Add VPE loader support for CMP platforms.") Signed-off-by: Yang Yingliang <[email protected]> Signed-off-by: Thomas Bogendoerfer <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions