mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-29 16:10:09 +01:00
modesetting: Fix uninitialized memory usage in drmmode_crtc_get_fb_id()
This really sucked to find out :(
Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Karol Herbst <kherbst@redhat.com>
(cherry picked from commit c41d4ff48f)
This commit is contained in:
parent
820ce7cb8b
commit
79795bf9df
1 changed files with 2 additions and 0 deletions
|
|
@ -604,6 +604,8 @@ drmmode_crtc_get_fb_id(xf86CrtcPtr crtc, uint32_t *fb_id, int *x, int *y)
|
|||
drmmode_ptr drmmode = drmmode_crtc->drmmode;
|
||||
int ret;
|
||||
|
||||
*fb_id = 0;
|
||||
|
||||
if (drmmode_crtc->prime_pixmap) {
|
||||
if (!drmmode->reverse_prime_offload_mode) {
|
||||
msPixmapPrivPtr ppriv =
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue