modesetting: NULL assignment for drmmode_set_target_scanout_target_cpu
Commit 80e64dae: "modesetting: Implement PRIME syncing as a sink" originally was supposed to have this line, but it was dropped as part of the merge process. Foregoing the NULL assignment causes a ton of problems with dereferencing uninitialized memory. Signed-off-by: Alex Goins <agoins@nvidia.com> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
df8e86931e
commit
ce24f3aa58
|
@ -956,6 +956,7 @@ drmmode_set_target_scanout_pixmap_cpu(xf86CrtcPtr crtc, PixmapPtr ppix,
|
|||
DamageUnregister(ppriv->slave_damage);
|
||||
ppriv->slave_damage = NULL;
|
||||
}
|
||||
*target = NULL;
|
||||
}
|
||||
|
||||
if (!ppix)
|
||||
|
|
Loading…
Reference in New Issue
Block a user