diff options
author | Maarten Lankhorst <maarten.lankhorst@canonical.com> | 2013-03-24 15:36:38 +0100 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2013-03-29 13:44:57 +1000 |
commit | b43decd2c513ae44a5462a1a4c2622f0fa77c9e0 (patch) | |
tree | ad0418ad04e067e4c8400735ec281523840963fd /drivers/hwmon/lm85.c | |
parent | f60b6e7a6078ceae438a95b808be04cd98f9909a (diff) | |
download | lwn-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/lm85.c')
0 files changed, 0 insertions, 0 deletions