git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media-device: fix infoleak in ioctl media_enum_entities()
[pandora-kernel.git]
/
drivers
/
hid
/
hid-picolcd.c
diff --git
a/drivers/hid/hid-picolcd.c
b/drivers/hid/hid-picolcd.c
index
01e7d2c
..
1daeaca
100644
(file)
--- a/
drivers/hid/hid-picolcd.c
+++ b/
drivers/hid/hid-picolcd.c
@@
-1424,7
+1424,7
@@
static ssize_t picolcd_operation_mode_store(struct device *dev,
buf += 10;
cnt -= 10;
}
- if (!report)
+ if (!report
|| report->maxfield != 1
)
return -EINVAL;
while (cnt > 0 && (buf[cnt-1] == '\n' || buf[cnt-1] == '\r'))