git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32fa454
)
i2o: fix overflow of copy_to_user()
author
Kulikov Vasiliy
<segooon@gmail.com>
Wed, 11 Aug 2010 01:02:03 +0000
(18:02 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Wed, 11 Aug 2010 15:59:05 +0000
(08:59 -0700)
If (len > reslen) we must not call copy_to_user() since kernel buffer is
smaller than we want to copy. Similar code in this file is correct, so
this bug was a typo.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
No differences found