summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMariusz Glebocki <mglebocki@antmicro.com>2014-10-09 16:28:12 +0200
committerStefan Agner <stefan.agner@toradex.com>2014-10-28 14:42:56 +0100
commit169a233f4779a7617179f825723d38f9832238f8 (patch)
treeb36f64af4c7930871b22a38ed9df95654e8505fc
parent0625688b466897845df130df7d66cb9ce8c369bb (diff)
-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 3ea7bd2..40a9e5b 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);