From: Dan Carpenter Date: Tue, 30 Apr 2013 22:27:47 +0000 (-0700) Subject: i2o: check copy_from_user() size parameter X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~88^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9151b3982dafaa87bca3834c4d20db831ca98bcb;p=pandora-kernel.git i2o: check copy_from_user() size parameter Limit the size of the copy so we don't corrupt memory. Hopefully this can only be called by root, but fixing this makes the static checkers happier. Signed-off-by: Dan Carpenter Cc: Jiri Kosina Cc: Masanari Iida Cc: Alan Cox Cc: Guenter Roeck Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed