Yang Yingliang 911773f08c 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>
2023-01-14 10:15:17 +01:00
..
2018-10-31 08:54:16 -07:00
2020-05-22 09:09:01 +02:00
2020-07-27 14:31:08 -04:00
2020-05-22 09:09:01 +02:00
2020-05-15 14:53:19 +02:00
2020-07-26 10:18:35 +02:00
2020-05-07 11:55:47 +02:00