Module Name:    src
Committed By:   skrll
Date:           Thu Mar 19 15:19:13 UTC 2020

Modified Files:
        src/sys/dev/ic: dwc_mmc.c

Log Message:
Release the sc_intr_lock on error


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/sys/dev/ic/dwc_mmc.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/dwc_mmc.c
diff -u src/sys/dev/ic/dwc_mmc.c:1.22 src/sys/dev/ic/dwc_mmc.c:1.23
--- src/sys/dev/ic/dwc_mmc.c:1.22	Thu Jan 23 23:53:55 2020
+++ src/sys/dev/ic/dwc_mmc.c	Thu Mar 19 15:19:13 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_mmc.c,v 1.22 2020/01/23 23:53:55 jmcneill Exp $ */
+/* $NetBSD: dwc_mmc.c,v 1.23 2020/03/19 15:19:13 skrll Exp $ */
 
 /*-
  * Copyright (c) 2014-2017 Jared McNeill <jmcne...@invisible.ca>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dwc_mmc.c,v 1.22 2020/01/23 23:53:55 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dwc_mmc.c,v 1.23 2020/03/19 15:19:13 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -717,6 +717,7 @@ dwc_mmc_exec_command(sdmmc_chipset_handl
 		if (error != 0) {
 			cmd->c_error = error;
 			SET(cmd->c_flags, SCF_ITSDONE);
+			mutex_exit(&sc->sc_intr_lock);
 			goto done;
 		}
 	}

Reply via email to