[FOSS_TLK]security: tlk_driver: add session tracking
authorScott Long <scottl@nvidia.com>
Tue, 16 Sep 2014 19:54:23 +0000 (12:54 -0700)
committerVarun Wadekar <vwadekar@nvidia.com>
Thu, 18 Jun 2015 12:08:11 +0000 (05:08 -0700)
commit6fa337386dedd8fc908755a20f59e2b2dbddcb04
tree3f00107fc889a8720b1829eea746f63eee1864ab
parent282a94dc2c7a638995e15b06d7b5e27d1f733bd0
[FOSS_TLK]security: tlk_driver: add session tracking

Previously, if a client application exits w/o
closing any open session(s) the session and
its resources would be lost.

With this change we now track open sessions so
that any that remain open when tlk_device_release
is called can be properly closed.

This allows memory buffer tracking to be simplified
as well since the various lists can be tracked
per-session instead of globally as before.

Change-Id: I134ab7f2a963dc9afba41f5411187d61dc3b6539
Signed-off-by: Scott Long <scottl@nvidia.com>
Reviewed-on: http://git-master/r/755002
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
security/tlk_driver/ote_device.c
security/tlk_driver/ote_protocol.h