commit | 0108bc808107b97e101b15af9705729626be6447 | [log] [tgz] |
---|---|---|
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | Sun Jul 07 10:40:19 2013 +0200 |
committer | Ben Skeggs <bskeggs@redhat.com> | Wed Jul 10 10:48:07 2013 +1000 |
tree | 1daa36e4937fdeca38f7efdcecb83b1e56046258 | |
parent | 9b234db37825860b833ba110673301e2009f0546 [diff] |
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 <maarten.lankhorst@canonical.com> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>