History

Merge tag 'fbdev-v4.16-rc5' of git://github.com/bzolnier/linux

Pull fbdev fix from Bartlomiej Zolnierkiewicz: "Just a single fix to close a kernel data leak in FBIOGETCMAP_SPARC ioctl" * tag 'fbdev-v4.16-rc5' of git://github.com/bzolnier/linux: fbdev: Fixing arbitrary kernel leak in case FBIOGETCMAP_SPARC in sbusfb_ioctl_helper().

Linus Torvalds committed 8 years ago

Commit 99d7d642 parents 65307f2 250c6c41 file · +2 −2Browse files

Unified · Split

drivers/video/fbdev/sbuslib.c+2−2
@@ -122,7 +122,7 @@ int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg, · 121 unmodified lines
122122 unsigned char __user *ured;
123123 unsigned char __user *ugreen;
124124 unsigned char __user *ublue;
125− int index, count, i;
125+ unsigned int index, count, i;
126126
127127 if (get_user(index, &c->index) ||
128128 __get_user(count, &c->count) ||
@@ -161,7 +161,7 @@ int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg, · 32 unmodified lines
161161 unsigned char __user *ugreen;
162162 unsigned char __user *ublue;
163163 struct fb_cmap *cmap = &info->cmap;
164− int index, count, i;
164+ unsigned int index, count, i;
165165 u8 red, green, blue;
166166
167167 if (get_user(index, &c->index) ||

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t