ashmem: Validate ashmem memory with fops pointer

CVE-2016-5340

Validate the ashmem memory entry against f_op pointer
rather then comparing its name with path of the dentry.

This is to avoid any invalid access to ashmem area in cases
where some one deliberately set the dentry name to /ashmem.

Change-Id: I74e50cd244f68cb13009cf2355e528485f4de34b
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
Reviewed-on: http://mcrd1-22-pc.corpnet.asus/code-review/master/250139
Reviewed-by: steve yang <steve2_yang@asus.com>
Tested-by: steve yang <steve2_yang@asus.com>
Reviewed-by: Carol_Jiang <carol_jiang@asus.com>
1 file changed