From: Maarten Lankhorst Date: Sun, 7 Jul 2013 08:40:19 +0000 (+0200) Subject: drm/nouveau: do not allow negative sizes for now X-Git-Tag: v3.11-rc3~23^2~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0108bc808107b97e101b15af9705729626be6447;p=pandora-kernel.git drm/nouveau: do not allow negative sizes for now The API allows up to 64-bits allocations, but size is handled as int inside nouveau almost everywhere. Until this is fixed it's better to prevent negative sizes. The 256 kB before INT_MAX is paranoia, because of the large page aligning below that could flip it above INT_MAX. Signed-off-by: Maarten Lankhorst Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed