From: Limeng <[email protected]> Hi Bruce,
When initialize VCHI_INSTANCE_T instance, it is a local variable in function vchiq_mmal_init(). In this way, there will be memory leak if vchiq instance is initialized failed or uninstall vchiq mmal driver. Therefore, add a VCHI_INSTANCE_T member struct vchiq_mmal_instance to save the vchiq instance, so that release vchiq instance if necessary. Could you please help to merge the patch into branch v5.8/standard/bcm-2xxx-rpi, linux-ycoto kernel. Patches for v5.4 and v5.8 kernel are different, so I send 2 pull requests. diffstat info ad below: mmal-vchiq.c | 7 +++++++ 1 file changed, 7 insertions(+) thanks, Limeng
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9019): https://lists.yoctoproject.org/g/linux-yocto/message/9019 Mute This Topic: https://lists.yoctoproject.org/mt/76642858/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/linux-yocto/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
