Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 55946
b: refs/heads/master
c: bf61f8d
h: refs/heads/master
v: v3
  • Loading branch information
Kenichi Nagai authored and Linus Torvalds committed May 11, 2007
1 parent 84638c7 commit 4fd7899
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 435b71be20f2ad3688acd94c05e968e029464d60
refs/heads/master: bf61f8d357e5d71d74a3ca3be3cce52bf1a2c01a
2 changes: 1 addition & 1 deletion trunk/drivers/input/evdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ static int bits_to_user(unsigned long *bits, unsigned int maxbit,

if (compat) {
len = NBITS_COMPAT(maxbit) * sizeof(compat_long_t);
if (len < maxlen)
if (len > maxlen)
len = maxlen;

for (i = 0; i < len / sizeof(compat_long_t); i++)
Expand Down

0 comments on commit 4fd7899

Please sign in to comment.