OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
[uclinux-h8/linux.git]
/
drivers
/
hid
/
hid-uclogic.c
diff --git
a/drivers/hid/hid-uclogic.c
b/drivers/hid/hid-uclogic.c
index
9416731
..
b905d50
100644
(file)
--- a/
drivers/hid/hid-uclogic.c
+++ b/
drivers/hid/hid-uclogic.c
@@
-858,7
+858,7
@@
static int uclogic_tablet_enable(struct hid_device *hdev)
for (p = drvdata->rdesc;
p <= drvdata->rdesc + drvdata->rsize - 4;) {
if (p[0] == 0xFE && p[1] == 0xED && p[2] == 0x1D &&
- p[3] <
sizeof
(params)) {
+ p[3] <
ARRAY_SIZE
(params)) {
v = params[p[3]];
put_unaligned(cpu_to_le32(v), (s32 *)p);
p += 4;