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

Commit f2f400d7 authored by Sriharsha Allenki's avatar Sriharsha Allenki
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>
parent d02d62b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1415,7 +1415,7 @@ static long gsi_ctrl_dev_ioctl(struct file *fp, unsigned int cmd,
						cdev);
	struct f_gsi *gsi;
	struct gsi_ctrl_pkt *cpkt;
	struct ep_info info;
	struct ep_info info = { {0}, {0} };
	struct data_buf_info data_info = {0};
	int val, ret = 0;
	unsigned long flags;