diff options
author | Michel Hermier | 2010-12-25 16:58:56 +0100 |
---|---|---|
committer | Ben Skeggs | 2010-12-27 10:41:01 +1000 |
commit | 8e91182bbdb8591be4835907d825a5b9a80495a9 (patch) | |
tree | a1154af0d994252622da3d48fcdcb1b8de775d03 /drivers/w1 | |
parent | c42988012ad9c1807b7c7a5ff855cd630094989b (diff) |
drm/nouveau: Validate channel indices passed from userspace.
When hacking the libdrm for improvements, I triggered a kernel crash
related to the fact that the NOUVEAU_NOTIFIEROBJ_ALLOC ioctl calls
nouveau_channel_get with an unchecked channel index.
The patch ensures that the channel index is an unsigned and validates
its value in nouveau_channel_get.
Signed-off-by: Michel Hermier <hermier@frugalware.org>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/w1')
0 files changed, 0 insertions, 0 deletions