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:
Arun Menon <avmenon@codeaurora.org>
Loading
Please register or sign in to comment