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

Commit 41fb5c29 authored by Arun Menon's avatar Arun Menon
Browse files

msm: vidc: Deinit bus if kmalloc fails to allocate response packet



If during firmware load, we failed to allocate device->response_pkt,
__deinit_bus was not called to clean up the added devfreq device.
So next time when a new session opens and calls devfreq_add_device,
it errors out saying device is already added. This change ensures
that we clean up properly after kmalloc failure during load firmware.

Change-Id: Ifb0f3cfe651bc0bf7144c9c89f3f95f4e389bc3b
Signed-off-by: default avatarArun Menon <avmenon@codeaurora.org>
parent 9fd50032
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment