Skip to content
  • Thomas Hellstrom's avatar
    st/xa: Don't close the drm fd on failure v2 · 35cf3831
    Thomas Hellstrom authored
    
    
    If XA fails to initialize with pipe_loader enabled, the pipe_loader's
    cleanup function will close the drm file descriptor. That's pretty bad
    because the file descriptor will probably be the X server driver's only
    connection to drm. Temporarily solve this by dup()'ing the file descriptor
    before handing it over to the pipe loader.
    
    This fixes freedesktop.org bugzilla bug #80645.
    
    v2: Fix CC addresses.
    
    Cc: "10.2" <mesa-stable@lists.freedesktop.org>
    Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
    Reviewed-by: default avatarJakob Bornecrantz <jakob@vmware.com>
    35cf3831