linux/drivers/gpu
Maarten Lankhorst b43decd2c5 drm/nouveau: fix handling empty channel list in ioctl's
If there are no channels, chan would never end up being NULL,
and so the null pointer check would fail.

Solve this by initializing chan to NULL, and iterating over temp instead.

Fixes oops when running intel-gpu-tools/tests/kms_flip, which attempts to
do some intel ioctl's on a nouveau device.

Signed-off-by: Maarten Lankhorst <maarten.lankhorst@canonical.com>
Cc: stable@vger.kernel.org [3.7+]
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
2013-03-29 13:44:57 +10:00
..
drm drm/nouveau: fix handling empty channel list in ioctl's 2013-03-29 13:44:57 +10:00
vga fbcon: fix locking harder 2013-02-08 12:02:43 +10:00
Makefile gpu: remove gma500 stub driver 2013-02-20 17:54:58 +10:00