summaryrefslogtreecommitdiff
path: root/drivers/hwmon
diff options
context:
space:
mode:
authorMaarten Lankhorst <maarten.lankhorst@canonical.com>2013-03-24 15:36:38 +0100
committerBen Skeggs <bskeggs@redhat.com>2013-03-29 13:44:57 +1000
commitb43decd2c513ae44a5462a1a4c2622f0fa77c9e0 (patch)
treead0418ad04e067e4c8400735ec281523840963fd /drivers/hwmon
parentf60b6e7a6078ceae438a95b808be04cd98f9909a (diff)
downloadlwn-b43decd2c513ae44a5462a1a4c2622f0fa77c9e0.tar.gz
lwn-b43decd2c513ae44a5462a1a4c2622f0fa77c9e0.zip
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>
Diffstat (limited to 'drivers/hwmon')
0 files changed, 0 insertions, 0 deletions