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

Commit f81d6b56 authored by Krishna Manikandan's avatar Krishna Manikandan
Browse files

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



Pass proper size for allocating memory for time_buf
during crtc_init.

Change-Id: Ibab3c6f32a3c59b44b636229e9fa9cedcac78c15
Signed-off-by: default avatarKrishna Manikandan <mkrishn@codeaurora.org>
parent 8f98759d
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");