diff options
| -rw-r--r-- | drivers/misc/ocxl/file.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/misc/ocxl/file.c b/drivers/misc/ocxl/file.c index 33ae46ce0a8a..e6a607488f8a 100644 --- a/drivers/misc/ocxl/file.c +++ b/drivers/misc/ocxl/file.c | |||
| @@ -139,8 +139,10 @@ static long afu_ioctl_enable_p9_wait(struct ocxl_context *ctx, | |||
| 139 | // Locks both status & tidr | 139 | // Locks both status & tidr |
| 140 | mutex_lock(&ctx->status_mutex); | 140 | mutex_lock(&ctx->status_mutex); |
| 141 | if (!ctx->tidr) { | 141 | if (!ctx->tidr) { |
| 142 | if (set_thread_tidr(current)) | 142 | if (set_thread_tidr(current)) { |
| 143 | mutex_unlock(&ctx->status_mutex); | ||
| 143 | return -ENOENT; | 144 | return -ENOENT; |
| 145 | } | ||
| 144 | 146 | ||
| 145 | ctx->tidr = current->thread.tidr; | 147 | ctx->tidr = current->thread.tidr; |
| 146 | } | 148 | } |
