summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/nouveau/nvc0_grctx.c
diff options
context:
space:
mode:
authorMichel Hermier <hermier@frugalware.org>2010-12-25 16:58:56 +0100
committerBen Skeggs <bskeggs@redhat.com>2010-12-27 10:41:01 +1000
commit8e91182bbdb8591be4835907d825a5b9a80495a9 (patch)
treea1154af0d994252622da3d48fcdcb1b8de775d03 /drivers/gpu/drm/nouveau/nvc0_grctx.c
parentc42988012ad9c1807b7c7a5ff855cd630094989b (diff)
downloadtalos-op-linux-8e91182bbdb8591be4835907d825a5b9a80495a9.tar.gz
talos-op-linux-8e91182bbdb8591be4835907d825a5b9a80495a9.zip
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/gpu/drm/nouveau/nvc0_grctx.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud