PERFORCE change 89879 for review
Warner Losh
imp at FreeBSD.org
Tue Jan 17 17:10:19 PST 2006
http://perforce.freebsd.org/chv.cgi?CH=89879
Change 89879 by imp at imp_Speedy on 2006/01/18 01:09:47
Don't destroy the lock on success.
Affected files ...
.. //depot/projects/arm/src/sys/arm/at91/if_ate.c#21 edit
Differences ...
==== //depot/projects/arm/src/sys/arm/at91/if_ate.c#21 (text+ko) ====
@@ -209,9 +209,10 @@
*/
err = bus_setup_intr(dev, sc->irq_res, INTR_TYPE_NET | INTR_MPSAFE,
ate_intr, sc, &sc->intrhand);
- if (err)
+ if (err) {
ether_ifdetach(ifp);
- ATE_LOCK_DESTROY(sc);
+ ATE_LOCK_DESTROY(sc);
+ }
out:;
if (err)
ate_deactivate(dev);
More information about the p4-projects
mailing list