Date: Fri, 26 Jul 2019 10:38:20 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org Subject: svn commit: r350356 - stable/11/sys/dev/efidev Message-ID: <201907261038.x6QAcK3i094245@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Fri Jul 26 10:38:20 2019 New Revision: 350356 URL: https://svnweb.freebsd.org/changeset/base/350356 Log: MFC r348541: efirt efi_enter(): Release acquired locks and restore FPU ownership if efi_arch_enter() returned an error. Modified: stable/11/sys/dev/efidev/efirt.c Directory Properties: stable/11/ (props changed) Modified: stable/11/sys/dev/efidev/efirt.c ============================================================================== --- stable/11/sys/dev/efidev/efirt.c Fri Jul 26 10:36:07 2019 (r350355) +++ stable/11/sys/dev/efidev/efirt.c Fri Jul 26 10:38:20 2019 (r350356) @@ -261,7 +261,13 @@ efi_enter(void) return (error); } - return (efi_arch_enter()); + error = efi_arch_enter(); + if (error != 0) { + fpu_kern_leave(td, NULL); + mtx_unlock(&efi_lock); + PMAP_UNLOCK(curpmap); + } + return (error); } static void
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907261038.x6QAcK3i094245>