summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/omapdrm/omap_gem_helpers.c
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2013-08-20 22:59:41 -0700
committerColin Cross <ccross@android.com>2013-09-19 23:03:32 -0500
commit1126d98d8e34d771afcc72ce5d1c37ad4d474402 (patch)
tree21100c65bdc75fc3636e3af1d852b3d258873a5e /drivers/gpu/drm/omapdrm/omap_gem_helpers.c
parent846b79b79391558e07b088193e14affe89d3be1b (diff)
downloadolio-linux-3.10-1126d98d8e34d771afcc72ce5d1c37ad4d474402.tar.xz
olio-linux-3.10-1126d98d8e34d771afcc72ce5d1c37ad4d474402.zip
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. Change-Id: Iab5667ba6f3a73256fec3949b23a9a6f8e14a283 Signed-off-by: Colin Cross <ccross@android.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_gem_helpers.c')
0 files changed, 0 insertions, 0 deletions