summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruwe <uwe@openbsd.org>2006-06-29 01:35:37 +0000
committeruwe <uwe@openbsd.org>2006-06-29 01:35:37 +0000
commit5f6b4b73b02cecedcf109bc796ac9b24fe1adf98 (patch)
treeb1d0070078dcfaa79ab90f43bc706d6df8278b57
parentThanks to ian@ who experimented a lot with his TI PCI7621 SDHC, we know (diff)
downloadwireguard-openbsd-5f6b4b73b02cecedcf109bc796ac9b24fe1adf98.tar.xz
wireguard-openbsd-5f6b4b73b02cecedcf109bc796ac9b24fe1adf98.zip
Oops! Clear the "function 0" pointer when the card goes away.
-rw-r--r--sys/dev/sdmmc/sdmmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/sdmmc/sdmmc.c b/sys/dev/sdmmc/sdmmc.c
index 0e84137f764..3b89507cb08 100644
--- a/sys/dev/sdmmc/sdmmc.c
+++ b/sys/dev/sdmmc/sdmmc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sdmmc.c,v 1.5 2006/06/03 03:53:47 martin Exp $ */
+/* $OpenBSD: sdmmc.c,v 1.6 2006/06/29 01:35:37 uwe Exp $ */
/*
* Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org>
@@ -162,6 +162,7 @@ sdmmc_card_detach(struct device *dev, int flags)
}
SIMPLEQ_INIT(&sc->sf_head);
sc->sc_function_count = 0;
+ sc->sc_fn0 = NULL;
}
int