diff options
author | 2007-01-28 03:03:12 +0000 | |
---|---|---|
committer | 2007-01-28 03:03:12 +0000 | |
commit | f2fcfe5e0c41dde3af649b3884fa7b63b35784fc (patch) | |
tree | f50e1507f9ecd9ae844427af8559fdb7397b752d | |
parent | add merging support in both local and remote sides. (diff) | |
download | wireguard-openbsd-f2fcfe5e0c41dde3af649b3884fa7b63b35784fc.tar.xz wireguard-openbsd-f2fcfe5e0c41dde3af649b3884fa7b63b35784fc.zip |
Restore spl level before exiting on error.
Noted by Matthew R. Dempsky.
-rw-r--r-- | sys/dev/sdmmc/sdhc.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdhc.c b/sys/dev/sdmmc/sdhc.c index 8f6e42960ae..90fc6eeb716 100644 --- a/sys/dev/sdmmc/sdhc.c +++ b/sys/dev/sdmmc/sdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdhc.c,v 1.15 2006/11/29 14:05:45 uwe Exp $ */ +/* $OpenBSD: sdhc.c,v 1.16 2007/01/28 03:03:12 krw Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -321,8 +321,10 @@ sdhc_host_reset(sdmmc_chipset_handle_t sch) * Reset the entire host controller and wait up to 100ms for * the controller to clear the reset bit. */ - if ((error = sdhc_soft_reset(hp, SDHC_RESET_ALL)) != 0) + if ((error = sdhc_soft_reset(hp, SDHC_RESET_ALL)) != 0) { + splx(s); return (error); + } /* Set data timeout counter value to max for now. */ HWRITE1(hp, SDHC_TIMEOUT_CTL, SDHC_TIMEOUT_MAX); |