From: Arjan van de Ven Date: Sat, 26 Sep 2009 18:50:25 +0000 (+0200) Subject: ACPI: Fix bound checks for copy_from_user in the acpi /proc code X-Git-Tag: v2.6.32-rc3~4^2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d9f65018065ee1b161a85f54132193f248a45439;p=pandora-kernel.git ACPI: Fix bound checks for copy_from_user in the acpi /proc code The ACPI /proc write() code takes an unsigned length argument like any write() function, but then assigned it to a *signed* integer called "len". Only after this is a sanity check for len done to make it not larger than 4. Due to the type change a len < 0 is in principle also possible; this patch adds a check for this. Signed-off-by: Arjan van de Ven Signed-off-by: Len Brown --- Reading git-diff-tree failed