security: tlk_driver: forcibly map user pages if default mapping fails
authorVarun Wadekar <vwadekar@nvidia.com>
Tue, 3 Dec 2013 07:07:11 +0000 (12:07 +0530)
committerVarun Wadekar <vwadekar@nvidia.com>
Sat, 7 Dec 2013 11:38:57 +0000 (03:38 -0800)
commit82fbaaf0944f86b37ec38a39504ab12d7eab99fa
tree8343caef743c5edc9f0af197ff61ea47422aaddd
parent4d8eee2146fbf8e4a3254ba72debe4cd89671bfd
security: tlk_driver: forcibly map user pages if default mapping fails

There are instances when te_pin_user_pages() fails due to failure in
get_user_pages(). We use default mapping policy to get user pages
before pinning. But if default fails, then try using "force" option to
map user pages.

Bug 1412144
Bug 1176001

Change-Id: I661a15c86846816a8050ddfda7b58711c31f7aa5
Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Reviewed-on: http://git-master/r/338755
security/tlk_driver/ote_comms.c