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

Commit afb6f27a authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "fbdev: core: Initialise structure to prevent kernel information leak"

parents c4cbf69b 7b23a7fc
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1099,6 +1099,13 @@ static long do_fb_ioctl(struct fb_info *info, unsigned int cmd,
	void __user *argp = (void __user *)arg;
	long ret = 0;

	memset(&var, 0, sizeof(var));
	memset(&fix, 0, sizeof(fix));
	memset(&con2fb, 0, sizeof(con2fb));
	memset(&cmap_from, 0, sizeof(cmap_from));
	memset(&cmap, 0, sizeof(cmap));
	memset(&event, 0, sizeof(event));

	switch (cmd) {
	case FBIOGET_VSCREENINFO:
		if (!lock_fb_info(info))