[PATCH] tee: optee: Fix kernel panic caused by incorrect error handling