Obsolete VTE pre-2.91 ABI
[oi-userland.git] / components / x11 / xorg-server / patches / 36-fix-issue-1275.patch
blob9d02210eaea1f8cdea1c78a5ea1c45602c33b018
1 This is a patch downgraded from
2 https://src.fedoraproject.org/rpms/xorg-x11-server/raw/rawhide/f/0001-present-Check-for-NULL-to-prevent-crash.patch
3 to fix a crash in NVIDIA-495.46 (and later): https://gitlab.freedesktop.org/xorg/xserver/-/issues/1275
5 --- xorg-server-1.19.7/present/present.c.orig 2019-02-02 10:35:15.000000000 +0000
6 +++ xorg-server-1.19.7/present/present.c 2022-11-11 11:29:27.266755642 +0000
7 @@ -255,6 +255,9 @@
8 if (!screen_priv->info)
9 return NULL;
11 + if (!screen_priv->info->get_crtc)
12 + return NULL;
14 return (*screen_priv->info->get_crtc)(window);
17 @@ -300,6 +303,9 @@
18 if (!screen_priv->info)
19 return;
21 + if (!screen_priv->info->flush)
22 + return;
24 (*screen_priv->info->flush) (window);