summaryrefslogtreecommitdiff
path: root/drivers/video/tegra/nvmap/nvmap_dev.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/tegra/nvmap/nvmap_dev.c')
-rw-r--r--drivers/video/tegra/nvmap/nvmap_dev.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/video/tegra/nvmap/nvmap_dev.c b/drivers/video/tegra/nvmap/nvmap_dev.c
index 3ea7bd2ea797..40a9e5b9f2ed 100644
--- a/drivers/video/tegra/nvmap/nvmap_dev.c
+++ b/drivers/video/tegra/nvmap/nvmap_dev.c
@@ -236,8 +236,9 @@ struct nvmap_handle *nvmap_get_handle_id(struct nvmap_client *client,
clients only if the owner is "videobuf2-dma-nvmap",
which is a V4L2 capture kernel module. This handle can
be accessed by the "user" client for rendering */
- if (!strcmp(((struct nvmap_handle *)id)->owner->name,
- "videobuf2-dma-nvmap"))
+ if (((struct nvmap_handle *)id)->owner &&
+ !strcmp(((struct nvmap_handle *)id)->owner->name,
+ "videobuf2-dma-nvmap"))
client = ((struct nvmap_handle *)id)->owner;
nvmap_ref_lock(client);