From bb2f14fff0a973a040aa6590a3bc7f01b0d21d31 Mon Sep 17 00:00:00 2001 From: Gaurav LNU Date: Sun, 12 Mar 2023 23:18:27 -0700 Subject: [PATCH] disp: msm: sde: increase buf array size This change increases the buf array size to accommodate all the characters as the buf array will store each digit of bit and enable as a char. Bit and enable variables are uint32 which could have max value of 2^32(10 digit), each digit of both variable will be stored as a char in buf (char)array. Change-Id: Iab6fcddc425642a29c6c0a59884121e328707465 Signed-off-by: Gaurav LNU --- msm/sde/sde_crtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/sde/sde_crtc.c b/msm/sde/sde_crtc.c index 56ae133b..1029e705 100644 --- a/msm/sde/sde_crtc.c +++ b/msm/sde/sde_crtc.c @@ -7208,7 +7208,7 @@ static ssize_t _sde_debugfs_hw_fence_features_mask_wr(struct file *file, { struct sde_crtc *sde_crtc; u32 bit, enable; - char buf[10]; + char buf[25]; if (!file || !file->private_data) return -EINVAL;