OSDN Git Service

drm/nouveau/disp/nv50-: prevent oops when no channel method map provided
authorBen Skeggs <bskeggs@redhat.com>
Tue, 28 Jan 2020 04:39:26 +0000 (14:39 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 29 Jan 2020 05:49:56 +0000 (15:49 +1000)
commit0e6176c6d286316e9431b4f695940cfac4ffe6c2
treee6e76ad8f3cd287185ca5afcaa8b4fe0f3c423c3
parent0352029ed83ff4d3f99e6bcf31bed5a97b07e3cf
drm/nouveau/disp/nv50-: prevent oops when no channel method map provided

The implementations for most channel types contains a map of methods to
priv registers in order to provide debugging info when a disp exception
has been raised.

This info is missing from the implementation of PIO channels as they're
rather simplistic already, however, if an exception is raised by one of
them, we'd end up triggering a NULL-pointer deref.  Not ideal...

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=206299
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c