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

Commit 6cfec4d3 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: add kzalloc success check for new q6 HAL session"

parents e0fb7f42 560b27bc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -556,6 +556,10 @@ static void *q6_hfi_session_init(void *device, u32 session_id,

	new_session = (struct hal_session *)
		kzalloc(sizeof(struct hal_session), GFP_KERNEL);
	if (!new_session) {
		dprintk(VIDC_ERR, "new session fail: Out of memory\n");
		return NULL;
	}
	new_session->session_id = (u32) session_id;
	if (session_type == 1)
		new_session->is_decoder = 0;