drm: fix blob pointer check
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Thu, 10 Mar 2016 12:04:21 +0000 (12:04 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 10 Mar 2016 12:47:30 +0000 (13:47 +0100)
commit562c5b4d898613bec97f482098e7507f52c914cb
treea41f052910819c5ae0d66ed76019d49a70e4371b
parent5488dc16fde74595a40c5d20ae52d978313f0b4e
drm: fix blob pointer check

Check properly that the allocated blob's pointer is valid.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Daniel Stone <daniels@collabora.com>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Matt Roper <matthew.d.roper@intel.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Daniel Stone <daniels@collabora.com>
Fixes: 5488dc16fde7 ("drm: introduce pipe color correction properties")
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1457611461-9116-1-git-send-email-lionel.g.landwerlin@intel.com
drivers/gpu/drm/drm_atomic_helper.c