linaro-swg / linux

Linux kernel source tree
Other
41 stars 79 forks source link

optee: fix tee-supplicant abort when receive KILLSIG #57

Closed airbak closed 6 years ago

airbak commented 6 years ago

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