summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-11-04 11:39:45 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-01-18 11:40:54 +0100
commitc0b8cff0146babdb61925d09c49db734c9a92157 (patch)
tree1a81e7cf874352c22b8f162f25a91af77c964fe3 /Documentation
parentb3325a443525e3b89151879b834519b21c5e3011 (diff)
MIPS: vpe-cmp: fix possible memory leak while module exiting
[ Upstream commit c5ed1fe0801f0c66b0fbce2785239a5664629057 ] 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 <yangyingliang@huawei.com> Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions