FPII-2363: ashmem: Validate ashmem memory with fops pointer

ashmem: Validate ashmem memory with fops pointer

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: I7a0eac35607cb5823c1e3a82671834fa5c28ce57
Signed-off-by: Sunil Khatri <sunilkh@codeaurora.org>
Signed-off-by: Paul Keith <javelinanddart@gmail.com>
1 file changed