]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nv04/crtc: Bail out if FB is not bound to crtc
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 25 Aug 2011 20:36:51 +0000 (21:36 +0100)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 9 Sep 2011 07:24:21 +0000 (17:24 +1000)
commit6dd061f7429ff8086135fab62f73f44f29b7b3ac
treefac5c78b418ba4562cc02246dfbcd61c9032a90f
parentd2a37784fe392985f8623db6e971c25c9e25a61e
drm/nv04/crtc: Bail out if FB is not bound to crtc

This commit resolves a possible 'NULL pointer dereference'
It uses the same approach as radeon, intel and nouveau/nv50

Fixes bug 'Nouveau: Kernel oops when unplugging external monitor'
https://bugs.freedesktop.org/show_bug.cgi?id=40336

Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nv04_crtc.c