xf86drm: Handle NULL in drmCopyVersion
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 27 Mar 2025 09:41:37 +0000 (17:41 +0800)
committerTimo Aaltonen <tjaalton@debian.org>
Tue, 1 Apr 2025 08:08:19 +0000 (11:08 +0300)
commit98139ac030fcd6311fe80ce70a5dbef6ea41692b
treee41d828b3011c4b6491553cc968c0a18968bdc75
parentd2124033a3a5d76b340b65d6962b2ad2dbf935e8
xf86drm: Handle NULL in drmCopyVersion

Just as it is already handled in the caller, `drmGetVersion`.

I'm not sure what the offending driver is, but the Ubuntu incidents
seem to be coming from a dual Intel/Nvidia machine. And they show
it is `card1` so I'm guessing `nvidia-drm` is the offender.

Bug-Ubuntu: https://bugs.launchpad.net/bugs/2104352

Gbp-Pq: Name xf86drm-Handle-NULL-in-drmCopyVersion.patch
xf86drm.c