diff options
author | Maarten Lankhorst <[email protected]> | 2013-03-24 15:36:38 +0100 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2013-03-29 13:44:57 +1000 |
commit | b43decd2c513ae44a5462a1a4c2622f0fa77c9e0 (patch) | |
tree | ad0418ad04e067e4c8400735ec281523840963fd /drivers/scsi/mpt2sas/mpi/mpi2_raid.h | |
parent | f60b6e7a6078ceae438a95b808be04cd98f9909a (diff) |
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 <[email protected]>
Cc: [email protected] [3.7+]
Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions