summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/tegra/nvmap/nvmap_cache_t19x.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_cache_t19x.c b/drivers/video/tegra/nvmap/nvmap_cache_t19x.c
index 09a56c38d..975327752 100644
--- a/drivers/video/tegra/nvmap/nvmap_cache_t19x.c
+++ b/drivers/video/tegra/nvmap/nvmap_cache_t19x.c
@@ -1,7 +1,7 @@
1/* 1/*
2 * drivers/video/tegra/nvmap/nvmap_cache_t19x.c 2 * drivers/video/tegra/nvmap/nvmap_cache_t19x.c
3 * 3 *
4 * Copyright (c) 2016-2021, NVIDIA CORPORATION. All rights reserved. 4 * Copyright (c) 2016-2022, NVIDIA CORPORATION. All rights reserved.
5 * 5 *
6 * This program is free software; you can redistribute it and/or modify it 6 * This program is free software; you can redistribute it and/or modify it
7 * under the terms and conditions of the GNU General Public License, 7 * under the terms and conditions of the GNU General Public License,
@@ -25,11 +25,11 @@ struct static_key nvmap_updated_cache_config;
25static void nvmap_handle_get_cacheability(struct nvmap_handle *h, 25static void nvmap_handle_get_cacheability(struct nvmap_handle *h,
26 bool *inner, bool *outer) 26 bool *inner, bool *outer)
27{ 27{
28 struct nvmap_handle_t19x *handle_t19x; 28 struct nvmap_handle_t19x *handle_t19x = NULL;
29 struct device *dev = nvmap_dev->dev_user.parent; 29 struct device *dev = nvmap_dev->dev_user.parent;
30 30
31 handle_t19x = dma_buf_get_drvdata(h->dmabuf, dev); 31 handle_t19x = dma_buf_get_drvdata(h->dmabuf, dev);
32 if (handle_t19x && atomic_read(&handle_t19x->nc_pin)) { 32 if (!IS_ERR_OR_NULL(handle_t19x) && atomic_read(&handle_t19x->nc_pin)) {
33 *inner = *outer = false; 33 *inner = *outer = false;
34 return; 34 return;
35 } 35 }