summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Stuehler <uwe@cvs.openbsd.org>2006-06-29 01:35:38 +0000
committerUwe Stuehler <uwe@cvs.openbsd.org>2006-06-29 01:35:38 +0000
commitab28017e80d1632470f6fe75747b9686212d69db (patch)
tree2d1ec7072e0bad1a850e93a61309b0ca0d28cd14
parent255cd9b72df631c346aaaae0f5318c4200e26365 (diff)
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