Skip to content
Commit 876ea7be authored by Mikko Perttunen's avatar Mikko Perttunen Committed by Ben Skeggs
Browse files

drm/nouveau: Skip vga_fini on non-PCI device



As with vga_init, this function doesn't make sense on non-PCI devices,
and the Thunderbolt check in it dereferences a NULL pointer in that
case. Add some code to skip this function when the device is not a PCI
device.

Signed-off-by: default avatarMikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent fcd504e3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment