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

Commit e9b731b0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 66bb76e4 41fb5c29
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4030,11 +4030,13 @@ static int __init_resources(struct venus_hfi_device *device,
	if (!device->response_pkt) {
		dprintk(VIDC_ERR, "Failed to allocate resp_packets\n");
		rc = -ENOMEM;
		goto err_init_bus;
		goto err_malloc;
	}

	return rc;

err_malloc:
	__deinit_bus(device);
err_init_bus:
	__deinit_clocks(device);
err_init_clocks: