summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeung-Woo Kim <sw0312.kim@samsung.com>2016-11-14 17:34:08 +0900
committerJoonyoung Shim <jy0922.shim@samsung.com>2017-02-15 13:37:34 +0900
commit8e071b0f93165ecb8d6b35edcedba40e489e3d97 (patch)
tree3819cc91dec025200620df46eb694485bb85b7f6
parent4efd32a118ce94949b26e564e9eb1e7aea051b93 (diff)
downloadlibdrm-8e071b0f93165ecb8d6b35edcedba40e489e3d97.tar.gz
libdrm-8e071b0f93165ecb8d6b35edcedba40e489e3d97.tar.bz2
libdrm-8e071b0f93165ecb8d6b35edcedba40e489e3d97.zip
ipptest: pass through for get property error
This patch fixes to pass through for get property error to prevent null pointer deference. Change-Id: I3b46d9f6fecda79af7f7811acb4be828a2a2d506 Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
-rw-r--r--tests/ipptest/fimctest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ipptest/fimctest.c b/tests/ipptest/fimctest.c
index 655c0ffb..c95551bc 100644
--- a/tests/ipptest/fimctest.c
+++ b/tests/ipptest/fimctest.c
@@ -160,6 +160,9 @@ static void dump_props(drmModeConnector *connector)
for (i = 0; i < connector->count_props; i++) {
props = drmModeGetProperty(fd, connector->props[i]);
+ if (!props)
+ continue;
+
printf("\t%s, flags %d\n", props->name, props->flags);
drmModeFreeProperty(props);
}