From: Colin Cross Date: Fri, 13 Dec 2013 22:25:00 +0000 (-0800) Subject: ion: fix crash when alloc len is -1 X-Git-Tag: v3.14-rc1~150^2~391 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a14baf71b91845a7f68438d48f462cb754699ae2;p=pandora-kernel.git ion: fix crash when alloc len is -1 If userspace passes a length between -4095 and -1 to allocate it will pass the len != 0 check, but when len is page aligned it will be 0. Check len after page aligning. Drop the warning as well, userspace shouldn't be able to trigger a warning in the kernel. Signed-off-by: Colin Cross Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed