Restore interrupts on error path. From maxv's brainy list.

This commit is contained in:
dholland 2015-08-30 04:17:48 +00:00
parent 040c7cc074
commit f21923e061
1 changed files with 5 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: gem.c,v 1.102 2014/08/10 16:44:35 tls Exp $ */
/* $NetBSD: gem.c,v 1.103 2015/08/30 04:17:48 dholland Exp $ */
/*
*
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.102 2014/08/10 16:44:35 tls Exp $");
__KERNEL_RCSID(0, "$NetBSD: gem.c,v 1.103 2015/08/30 04:17:48 dholland Exp $");
#include "opt_inet.h"
@ -1149,8 +1149,10 @@ gem_init(struct ifnet *ifp)
(*sc->sc_hwreset)(sc);
/* step 3. Setup data structures in host memory */
if (gem_meminit(sc) != 0)
if (gem_meminit(sc) != 0) {
splx(s);
return 1;
}
/* step 4. TX MAC registers & counters */
gem_init_regs(sc);