Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d1fc34e authored by SaiVamshi Dobbali's avatar SaiVamshi Dobbali Committed by Maheshwar Ajja
Browse files

msm vidc : Fix memory leak in venus_hfi_core_init()



In venus_hfi_core_init() vote_data structure memory is allocated
and it is being overwritten in consecutive function __init_bus()
without freeing the original memory causing memory leak. Fix
the memory leak issue by removing the default initialisation
in __init_bus().

Change-Id: I007e6363327a32c4fd66bcaf02199fe627a4260f
Signed-off-by: default avatarSaiVamshi Dobbali <sdobbali@codeaurora.org>
Signed-off-by: default avatarMaheshwar Ajja <majja@codeaurora.org>
parent ad957023
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -4071,7 +4071,6 @@ static int __init_bus(struct venus_hfi_device *device)
		devfreq_suspend_device(bus->devfreq);
	}

	device->bus_vote = DEFAULT_BUS_VOTE;
	return 0;

err_add_dev: