PR kern/40099 device_t/softc split broke cac(4)/ld(4): panic: iostat_unbusy

This commit is contained in:
ad 2008-12-04 11:48:14 +00:00
parent 54c2458e25
commit 20d9c21a59
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: ld_cac.c,v 1.22 2008/09/09 12:45:39 tron Exp $ */
/* $NetBSD: ld_cac.c,v 1.23 2008/12/04 11:48:14 ad Exp $ */
/*-
* Copyright (c) 2000, 2006 The NetBSD Foundation, Inc.
@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: ld_cac.c,v 1.22 2008/09/09 12:45:39 tron Exp $");
__KERNEL_RCSID(0, "$NetBSD: ld_cac.c,v 1.23 2008/12/04 11:48:14 ad Exp $");
#include "rnd.h"
@ -216,6 +216,6 @@ ld_cac_done(struct device *dv, void *context, int error)
bp->b_resid = 0;
mutex_exit(sc->sc_mutex);
lddone((struct ld_softc *)dv, bp);
lddone(&sc->sc_ld, bp);
mutex_enter(sc->sc_mutex);
}