summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/video/tegra/nvmap/nvmap_handle.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_handle.c b/drivers/video/tegra/nvmap/nvmap_handle.c
index 725a132ff6fd..2f50c0a1b8d3 100644
--- a/drivers/video/tegra/nvmap/nvmap_handle.c
+++ b/drivers/video/tegra/nvmap/nvmap_handle.c
@@ -149,8 +149,10 @@ static int handle_page_alloc(struct nvmap_client *client,
prot = nvmap_pgprot(h, pgprot_kernel);
+#ifdef CONFIG_NVMAP_ALLOW_SYSMEM
if (nr_page == 1)
contiguous = true;
+#endif
h->pgalloc.area = NULL;
if (contiguous) {