mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
fbdev: core: Initialise structure to prevent kernel information leak
The structure fix is initialised before its usage to prevent kernel information leak during copy_to_user. Change-Id: Ice4da4c9bd6095a4387e1d16cb20ca474accb9dc Signed-off-by: Krishna Manikandan <mkrishn@codeaurora.org>
This commit is contained in:
parent
8bbd1df388
commit
79a5952bec
1 changed files with 5 additions and 0 deletions
|
|
@ -1087,6 +1087,11 @@ 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(&cmap_from, 0, sizeof(cmap_from));
|
||||
memset(&cmap, 0, sizeof(cmap));
|
||||
|
||||
switch (cmd) {
|
||||
case FBIOGET_VSCREENINFO:
|
||||
lock_fb_info(info);
|
||||
|
|
|
|||
Loading…
Reference in a new issue