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

Commit a5371a89 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>
parent a2839ca3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1480,7 +1480,7 @@ static long gsi_ctrl_dev_ioctl(struct file *fp, unsigned int cmd,
	struct gsi_ctrl_port *c_port;
	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};
	enum ipa_usb_teth_prot prot_id =
		*(enum ipa_usb_teth_prot *)(fp->private_data);