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

Commit 7270d3e1 authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "drm/msm/sde: Pass proper size for time_buf allocation"

parents 2f278928 f81d6b56
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -6451,7 +6451,7 @@ struct drm_crtc *sde_crtc_init(struct drm_device *dev, struct drm_plane *plane)
	/* Below parameters are for fps calculation for sysfs node */
	sde_crtc->fps_info.fps_periodic_duration = DEFAULT_FPS_PERIOD_1_SEC;
	sde_crtc->fps_info.time_buf = kmalloc_array(MAX_FRAME_COUNT,
			sizeof(sde_crtc->fps_info.time_buf), GFP_KERNEL);
			sizeof(ktime_t), GFP_KERNEL);

	if (!sde_crtc->fps_info.time_buf)
		SDE_ERROR("invalid buffer\n");