Skip to content
Commit 2419672f authored by Dan Carpenter's avatar Dan Carpenter Committed by Tomi Valkeinen
Browse files

drm/omap: Potential NULL deref in omap_crtc_duplicate_state()



If the kmalloc() fails then we dereference "state" when we set
"state->zpos".

Fixes: 3dfeb631 ("drm/omap: Rework the rotation-on-crtc hack")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 4161f200
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment