From: Kulikov Vasiliy Date: Wed, 11 Aug 2010 01:02:03 +0000 (-0700) Subject: i2o: fix overflow of copy_to_user() X-Git-Tag: v2.6.36-rc1~220 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d929dc2bfd8a58c34f1df0680018fa8ea5caa907;p=pandora-kernel.git i2o: fix overflow of copy_to_user() 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed