diff options
author | 2012-11-19 09:44:57 +0000 | |
---|---|---|
committer | 2012-11-20 15:40:51 +1000 | |
commit | e655d122a71332d0d26b5c0909eb395da31af0c0 (patch) | |
tree | b21b2da3e7cbd4466e0b266c984b0144dfb1c8bc /drivers/gpu/drm/ttm/ttm_execbuf_util.c | |
parent | drm/crtc: Remove redundant NULL check before kfree (diff) | |
download | linux-dev-e655d122a71332d0d26b5c0909eb395da31af0c0.tar.xz linux-dev-e655d122a71332d0d26b5c0909eb395da31af0c0.zip |
drm/crtc: Fix potential NULL pointer dereference
drm_property_create_blob() could return NULL in which case NULL pointer
dereference error (on connector->edid_blob_ptr) is possible. Return if
connector->edid_blob_ptr is NULL.
Fixes the following smatch error:
drivers/gpu/drm/drm_crtc.c:3186 drm_mode_connector_update_edid_property()
error: potential null dereference 'connector->edid_blob_ptr'.
(drm_property_create_blob returns null)
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_execbuf_util.c')
0 files changed, 0 insertions, 0 deletions