aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorMichel Hermier <[email protected]>2010-12-25 16:58:56 +0100
committerBen Skeggs <[email protected]>2010-12-27 10:41:01 +1000
commit8e91182bbdb8591be4835907d825a5b9a80495a9 (patch)
treea1154af0d994252622da3d48fcdcb1b8de775d03 /tools/perf/util/trace-event-scripting.c
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 <[email protected]> Signed-off-by: Francisco Jerez <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions