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

Commit 07b380d3 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: Fix out of bound access during memcpy"

parents 724141fa 8b90095d
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -981,7 +981,7 @@ static void handle_session_prop_info(enum hal_command_response cmd, void *data)
	}
	}


	getprop->data = kmemdup(&response->data.property,
	getprop->data = kmemdup(&response->data.property,
			response->size, GFP_KERNEL);
			sizeof(union hal_get_property), GFP_KERNEL);
	if (!getprop->data) {
	if (!getprop->data) {
		dprintk(VIDC_ERR, "%s: kmemdup failed\n", __func__);
		dprintk(VIDC_ERR, "%s: kmemdup failed\n", __func__);
		kfree(getprop);
		kfree(getprop);