mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-01 10:40:08 +01:00
dri2: return FALSE not BadValue.
With 1.7 if you try and send a DRI2Connect with this value set to anything but 0, the server will segfault due to the strlen in the function this returns to, since BadValue != FALSE. Fixed via other work in 1.8. Signed-off-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
1242e494c8
commit
3ae6a3779d
1 changed files with 1 additions and 1 deletions
|
|
@ -387,7 +387,7 @@ DRI2Connect(ScreenPtr pScreen, unsigned int driverType, int *fd,
|
|||
return FALSE;
|
||||
|
||||
if (driverType != DRI2DriverDRI)
|
||||
return BadValue;
|
||||
return FALSE;
|
||||
|
||||
*fd = ds->fd;
|
||||
*driverName = ds->driverName;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue