Skip to content

Commit 99d7d64

Browse files
committed
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().
2 parents 65307f2 + 250c6c4 commit 99d7d64

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/video/fbdev/sbuslib.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ int sbusfb_ioctl_helper(unsigned long cmd, unsigned long arg,
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,
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) ||

0 commit comments

Comments
 (0)