Arjan van de Ven 825332e4ff 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 <arjan@linux.intel.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: James Morris <jmorris@namei.org>
2009-10-14 08:17:36 +11:00
..
2009-09-21 14:29:21 +02:00
2009-09-23 18:13:10 -07:00
2009-06-24 00:02:38 -04:00
2009-09-18 09:48:52 -07:00
2009-06-16 19:47:48 -07:00
2009-08-29 14:10:07 +02:00
2009-09-19 13:13:17 -07:00
2009-05-15 07:56:24 -05:00
2009-09-23 07:39:29 -07:00
2009-07-24 10:53:29 +02:00
2009-06-18 13:03:56 -07:00
2009-09-19 08:53:22 +02:00
2009-09-19 08:53:22 +02:00
2009-09-19 08:53:22 +02:00
2009-09-23 07:39:41 -07:00
2009-09-18 20:47:30 +02:00
2009-07-12 14:03:27 -07:00
2009-09-23 18:13:10 -07:00
2009-06-15 21:30:23 -07:00
2009-06-18 13:03:55 -07:00