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

Commit 856aeb74 authored by Jeyaprakash Soundrapandian's avatar Jeyaprakash Soundrapandian Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: camera: reqmgr: Remove kfree calls on link struct" into dev/msm-4.14-camx

parents c4271fde 75fd5d03
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -1448,12 +1448,10 @@ static struct cam_req_mgr_core_link *__cam_req_mgr_reserve_link(
		kzalloc(sizeof(struct cam_req_mgr_req_queue), GFP_KERNEL);
	if (!in_q) {
		CAM_ERR(CAM_CRM, "failed to create input queue, no mem");
		kfree(link);
		return NULL;
	}

	mutex_lock(&link->lock);
	link->state = CAM_CRM_LINK_STATE_AVAILABLE;
	link->num_devs = 0;
	link->max_delay = 0;
	memset(in_q->slot, 0,
@@ -1490,7 +1488,6 @@ static struct cam_req_mgr_core_link *__cam_req_mgr_reserve_link(
	return link;
error:
	mutex_unlock(&session->lock);
	kfree(link);
	kfree(in_q);
	return NULL;
}