[FOSS_TLK]security: tlk_driver: free tmp memrefs
Scott Long [Fri, 29 Aug 2014 23:18:18 +0000 (16:18 -0700)]
Release temporary memory parameter references at the conclusion
of a launch operation to ensure pages are unpinned and
other resources are properly cleaned up.

Change-Id: I584e2580be487fe281a88cb16d41aa241763561d
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/754998
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

index d7fa733..37f9f72 100644 (file)
@@ -621,4 +621,6 @@ void te_launch_operation_compat(struct te_launchop_compat *cmd,
                /* mark active any persistent mem buffers */
                te_update_persist_mem_buffers(request->session_id, context);
        }
+
+       te_release_temp_mem_buffers(context);
 }