OSDN Git Service

Ensure property blob pointer is non-null
authorKevin Strasser <kevin.strasser@intel.com>
Mon, 14 May 2018 21:14:48 +0000 (14:14 -0700)
committerKalyan Kondapally <kalyan.kondapally@intel.com>
Wed, 16 May 2018 06:41:51 +0000 (23:41 -0700)
commite2c04cf9578eea17b4f440149df20a482585190e
tree5c09803428ef60d1c681fcfb7e46743362f761ea
parent6779162bbf211cc02cb9ec7acef2c8224c75545e
Ensure property blob pointer is non-null

If something goes wrong in drmModeGetPropertyBlob() the blob pointer gets
set to NULL and then it is dereferenced. Add a check and fail out on NULL.

KW-41317
KW-41318

Jira: GSE-1587
Test: Check that the build passes and demo apps keep running

Signed-off-by: Kevin Strasser <kevin.strasser@intel.com>
wsi/drm/drmplane.cpp