aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorBen Hutchings <ben@decadent.org.uk>2009-08-23 11:59:04 -0400
committerThomas Gleixner <tglx@linutronix.de>2009-11-06 05:49:52 -0500
commite8b444f5280c41a0898de7c90a3a0d00a9103eda (patch)
treed580218ad056c1f44653e20a31c654b3cbf679a0 /include/linux/errqueue.h
parent287c11d0472331758e181863499e9914043e08d1 (diff)
drm/r128: Add test for initialisation to all ioctls that require it
Almost all r128's private ioctls require that the CCE state has already been initialised. However, most do not test that this has been done, and will proceed to dereference a null pointer. This may result in a security vulnerability, since some ioctls are unprivileged. This adds a macro for the common initialisation test and changes all ioctl implementations that require prior initialisation to use that macro. Also, r128_do_init_cce() does not test that the CCE state has not been initialised already. Repeated initialisation may lead to a crash or resource leak. This adds that test. Signed-off-by: Ben Hutchings <ben@decadent.org.uk> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions