From: Michel Hermier Date: Sat, 25 Dec 2010 15:58:56 +0000 (+0100) Subject: drm/nouveau: Validate channel indices passed from userspace. X-Git-Tag: v2.6.38-rc1~419^2~4^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8e91182bbdb8591be4835907d825a5b9a80495a9;p=pandora-kernel.git 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 Signed-off-by: Francisco Jerez Signed-off-by: Ben Skeggs --- Reading git-diff-tree failed