From: Colin Cross Date: Fri, 13 Dec 2013 22:24:50 +0000 (-0800) Subject: ion: replace userspace handle cookies with idr X-Git-Tag: v3.14-rc1~150^2~401 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=47b404580bd92ec8dd3e691020bd515f6af262af;p=pandora-kernel.git 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 [jstultz: modified patch to apply to staging directory] Signed-off-by: John Stultz Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed