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

Commit 97e3b829 authored by Jayant Shekhar's avatar Jayant Shekhar Committed by Abhijith Desai
Browse files

msm: mdss: Initialize buf array elements



In bandwidth limit read function, 'buf' array
elements might be used uninitialized. Ensure
the array elements are initialized.

Change-Id: I210c73b14327436296a844fc5ebd47ccc02bf5fb
Signed-off-by: default avatarJayant Shekhar <jshekhar@codeaurora.org>
parent 4ec6a58c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1109,7 +1109,7 @@ static ssize_t mdss_debug_perf_bw_limit_read(struct file *file,
	struct mdss_data_type *mdata = file->private_data;
	struct mdss_max_bw_settings *temp_settings;
	int len = 0, i;
	char buf[256];
	char buf[256] = {'\0'};

	if (!mdata)
		return -ENODEV;