Yang Yingliang c5ed1fe080 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 <yangyingliang@huawei.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
2022-11-22 13:09:36 +01:00
..
2022-01-17 08:07:57 +02:00
2022-05-04 22:22:59 +02:00
2022-07-17 14:52:47 +02:00
2022-05-04 22:22:59 +02:00
2022-09-26 12:37:21 -04:00
2022-10-03 09:31:55 -07:00
2022-09-12 15:33:24 +02:00
2022-08-06 16:47:19 -07:00
2021-01-22 11:40:00 +01:00
2021-10-18 18:09:54 +02:00
2022-05-04 22:22:59 +02:00
2022-05-04 22:22:59 +02:00
2022-07-14 11:52:29 +02:00