Loading drivers/media/platform/msm/camera/cam_req_mgr/cam_req_mgr_core.c +0 −3 Original line number Diff line number Diff line Loading @@ -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, Loading Loading @@ -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; } Loading Loading
drivers/media/platform/msm/camera/cam_req_mgr/cam_req_mgr_core.c +0 −3 Original line number Diff line number Diff line Loading @@ -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, Loading Loading @@ -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; } Loading