summaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorColin Cross2013-12-13 14:24:50 -0800
committerGreg Kroah-Hartman2013-12-14 08:57:18 -0800
commit47b404580bd92ec8dd3e691020bd515f6af262af (patch)
treed8bcf5cc1b75a10f7543fa54c9dd83ce39c798c5 /include/linux/debugobjects.h
parent9e907654d3c0ff58fb27b51d94128a9749c7e85c (diff)
ion: replace userspace handle cookies with idr
Userspace handles should not leak kernel virtual addresses to userspace. They have to be validated by looking them up in an rbtree anyways, so replace them with an idr and validate them by using idr_find to convert the id number to the struct ion_handle pointer. Signed-off-by: Colin Cross <ccross@android.com> [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions