diff options
author | Krishna Reddy <vdumpa@nvidia.com> | 2011-09-16 17:40:47 -0700 |
---|---|---|
committer | Varun Colbert <vcolbert@nvidia.com> | 2011-09-20 15:01:33 -0700 |
commit | 21e30b0910d6ee38eb7f1e68e21507a80758c74d (patch) | |
tree | 0ee4f628ef2f409af8db2a9c0dcb2361034d4306 | |
parent | 98e94273c0cbcf8723e18dee69b343556d23e613 (diff) |
video: tegra: nvmap: Don't allocate more than iovm limit.
Don't allow root user allocating more than iovm limit to avoid pin
time issues.
Bug 864535
Change-Id: I8aee89cc85e244a7453b5b31f6f998e97c498915
Reviewed-on: http://git-master/r/53048
Reviewed-by: Rhyland Klein <rklein@nvidia.com>
Tested-by: Rhyland Klein <rklein@nvidia.com>
Reviewed-by: Kirill Artamonov <kartamonov@nvidia.com>
Reviewed-by: Krishna Reddy <vdumpa@nvidia.com>
-rw-r--r-- | drivers/video/tegra/nvmap/nvmap_handle.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_handle.c b/drivers/video/tegra/nvmap/nvmap_handle.c index d3fc7492e71c..4eef6a5fd61f 100644 --- a/drivers/video/tegra/nvmap/nvmap_handle.c +++ b/drivers/video/tegra/nvmap/nvmap_handle.c @@ -273,7 +273,7 @@ static void alloc_handle(struct nvmap_client *client, commit = atomic_add_return(reserved, &client->iovm_commit); - if (commit < client->iovm_limit || client->super) + if (commit < client->iovm_limit) ret = handle_page_alloc(client, h, false); else ret = -ENOMEM; |