[PATCH 5.4 049/320] tee: fix put order in teedev_close_context()