When press ctrl-c to CA, it will receive KILLSIG singal.
And the wait_for_completion_interruptible will always been true.
But actully not tee-supplicant receive KILLSIG, so it become an
endless loop.
To solve this issue:
1)Check whether tee-supplicant is available before create a request.
2)Replace wait_for_completion_interruptible with wait_for_completion.
When press ctrl-c to CA, it will receive KILLSIG singal. And the wait_for_completion_interruptible will always been true. But actully not tee-supplicant receive KILLSIG, so it become an endless loop. To solve this issue: 1)Check whether tee-supplicant is available before create a request. 2)Replace wait_for_completion_interruptible with wait_for_completion.
Signed-off-by: Jianhui Li airbak.li@hisilicon.com