[FOSS_TLK]security: tlk_driver: Pin user space page(s).
authorSharif Inamdar <isharif@nvidia.com>
Tue, 3 Jun 2014 11:09:58 +0000 (16:09 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 18 Jun 2015 12:04:06 +0000 (05:04 -0700)
commitaca229f5a268109e1f21cfa61db0d1e6fa0e6a10
tree1fcbc09a23fec95f47ffe6c7d09af8a57102d23b
parent624f59a033d87318d863ab2c0dc14cd2d247c31b
[FOSS_TLK]security: tlk_driver: Pin user space page(s).

Pin user space pages based on the type of memory i.e.
read or write.

TE_PARAM_TYPE_MEM_RO or TE_PARAM_TYPE_MEM_RW param
indicates whether the TLK kernel will setup a RO/RW
mapping for the TA to this buffer.

Based on the type of memory we should pin the pages
using get_user_pages() as RO/RW.

Change-Id: Ib937433b64602f10cd1114f19845e9f6b4f8bf06
Signed-off-by: Sharif Inamdar <isharif@nvidia.com>
Reviewed-on: http://git-master/r/754995
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Wadekar <vwadekar@nvidia.com>
Tested-by: Varun Wadekar <vwadekar@nvidia.com>
security/tlk_driver/ote_comms.c