Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic Delay ahc_free until after shutdown hook disestab...



details:   https://anonhg.NetBSD.org/src/rev/5af0c9f42844
branches:  trunk
changeset: 546090:5af0c9f42844
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Sun Apr 20 15:31:50 2003 +0000

description:
Delay ahc_free until after shutdown hook disestablish.

diffstat:

 sys/dev/ic/aic7xxx_osm.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r 1bd7e2a86090 -r 5af0c9f42844 sys/dev/ic/aic7xxx_osm.c
--- a/sys/dev/ic/aic7xxx_osm.c  Sun Apr 20 14:37:59 2003 +0000
+++ b/sys/dev/ic/aic7xxx_osm.c  Sun Apr 20 15:31:50 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: aic7xxx_osm.c,v 1.2 2003/04/19 19:38:21 fvdl Exp $     */
+/*     $NetBSD: aic7xxx_osm.c,v 1.3 2003/04/20 15:31:50 fvdl Exp $     */
 
 /*
  * Bus independent FreeBSD shim for the aic7xxx based adaptec SCSI controllers
@@ -988,9 +988,9 @@
        if (rv == 0 && ahc->sc_child_b != NULL)
                rv = config_detach(ahc->sc_child_b, flags);
 
-       ahc_free(ahc);
+       shutdownhook_disestablish(ahc->shutdown_hook);
 
-       shutdownhook_disestablish(ahc->shutdown_hook);
+       ahc_free(ahc);
 
        return (rv);
 }



Home | Main Index | Thread Index | Old Index