Permalink
Browse files

pefs: Call fpu_kern_enter in critical section

Signed-off-by: Gleb Kurtsou <gleb.kurtsou@gmail.com>
  • Loading branch information...
glk committed Jul 19, 2018
1 parent 02788ef commit ab0155960d66aee95dff0c1cf611a6987034dc65
Showing with 1 addition and 2 deletions.
  1. +1 −2 sys/fs/pefs/pefs_aesni.c
@@ -163,13 +163,12 @@ pefs_aesni_enter(struct pefs_session *xses)
if (ses->fpu_ctx != NULL) {
ses->td = curthread;
ses->fpu_cpuid = curcpu;
critical_exit();
fpu_kern_enter(ses->td, ses->fpu_ctx, FPU_KERN_NORMAL);
ses->fpu_saved = 1;
} else {
critical_exit();
ses->fpu_saved = -1;
}
critical_exit();
}

static void

0 comments on commit ab01559

Please sign in to comment.