Re: [PATCH v3] tee: amdtee: unload TA only when its refcount becomes 0

From: Dan Carpenter
Date: Mon May 03 2021 - 07:48:10 EST


On Mon, May 03, 2021 at 09:04:35AM +0530, Rijo Thomas wrote:
>
>
> On 14/04/21 11:08 pm, Rijo Thomas wrote:
> > Same Trusted Application (TA) can be loaded in multiple TEE contexts.
> >
> > If it is a single instance TA, the TA should not get unloaded from AMD
> > Secure Processor, while it is still in use in another TEE context.
> >
> > Therefore reference count TA and unload it when the count becomes zero.
> >
> > Fixes: 757cc3e9ff1d ("tee: add AMD-TEE driver")
> > Reviewed-by: Devaraj Rangasamy <Devaraj.Rangasamy@xxxxxxx>
> > Signed-off-by: Rijo Thomas <Rijo-john.Thomas@xxxxxxx>
>
> Hi Dan,
>
> Can you please give an Ack if you are okay with this patch.
> I have incorporated your review comments for v2.
>

Oh, Sorry. Thanks!

Acked-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

regards,
dan carpenter