aboutsummaryrefslogtreecommitdiff
path: root/drivers/w1
diff options
context:
space:
mode:
authorMichel Hermier2010-12-25 16:58:56 +0100
committerBen Skeggs2010-12-27 10:41:01 +1000
commit8e91182bbdb8591be4835907d825a5b9a80495a9 (patch)
treea1154af0d994252622da3d48fcdcb1b8de775d03 /drivers/w1
parentc42988012ad9c1807b7c7a5ff855cd630094989b (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