From: Arjan van de Ven Date: Tue, 13 Oct 2009 21:17:36 +0000 (+1100) Subject: capabilities: simplify bound checks for copy_from_user() X-Git-Tag: v2.6.33-rc1~411^2~21 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=825332e4ff1373c55d931b49408df7ec2298f71e;p=pandora-kernel.git capabilities: simplify bound checks for copy_from_user() The capabilities syscall has a copy_from_user() call where gcc currently cannot prove to itself that the copy is always within bounds. This patch adds a very explicity bound check to prove to gcc that this copy_from_user cannot overflow its destination buffer. Signed-off-by: Arjan van de Ven Acked-by: James Morris Signed-off-by: Andrew Morton Signed-off-by: James Morris --- Reading git-diff-tree failed