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

Commit 254e3dc2 authored by Sriharsha Allenki's avatar Sriharsha Allenki Committed by Gerrit - the friendly Code Review server
Browse files

usb: gsi: Initialize 'info' with zero



Initialize the local variable 'info' with zero to
prevent un-initialized access. Since the buffer is
copied to user as well, this will prevent the exposure
of data in the un-initialized buffer.

Change-Id: Ia63d15cd90411934e7c4eb4130da0c5e7f2db706
Signed-off-by: default avatarSriharsha Allenki <sallenki@codeaurora.org>
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 8e246a1d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1433,7 +1433,7 @@ static long gsi_ctrl_dev_ioctl(struct file *fp, unsigned int cmd,
						ctrl_device);
	struct f_gsi *gsi;
	struct gsi_ctrl_pkt *cpkt;
	struct ep_info info = { {0} };
	struct ep_info info = { {0}, {0} };
	int val, ret = 0;
	unsigned long flags;