[Nouveau] nv50_disp_chan_mthd: ensure mthd is not NULL

Frédéric Pierret frederic.pierret at qubes-os.org
Wed Jan 29 16:22:13 UTC 2020


Dear Ben Skeggs,

Please find attached a patch solving a blocking issue I encountered:
https://bugzilla.kernel.org/show_bug.cgi?id=206299

Basically, running at least a RTX2080TI on Xen makes a bad mmio error
which causes having 'mthd' pointer to be NULL in 'channv50.c'. From the
code, it's assumed to be not NULL by accessing directly 'mthd->data[0]'
which is the reason of the kernel panic. I simply check if the pointer
is not NULL before continuing.

Best regards,

Frédéric Pierret

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-nv50_disp_chan_mthd-ensure-mthd-is-not-NULL.patch
Type: text/x-patch
Size: 1182 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20200129/15d9c5e5/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/nouveau/attachments/20200129/15d9c5e5/attachment.sig>


More information about the Nouveau mailing list