summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorwpaul <wpaul@FreeBSD.org>2000-10-25 23:36:45 +0000
committerwpaul <wpaul@FreeBSD.org>2000-10-25 23:36:45 +0000
commit385109d266621a3c0f5501c28b46d32a772afc77 (patch)
treef8ef3d5571dd2f349c450d895fa473b5ac50cfd1 /sys
parentc10c0d316a45c9730a7105518cf4a331ac748faa (diff)
downloadFreeBSD-src-385109d266621a3c0f5501c28b46d32a772afc77.zip
FreeBSD-src-385109d266621a3c0f5501c28b46d32a772afc77.tar.gz
Add a missing SK_UNLOCK() to sk_attach_xmac().
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/sk/if_sk.c1
-rw-r--r--sys/pci/if_sk.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c
index d238e30..bb0c414 100644
--- a/sys/dev/sk/if_sk.c
+++ b/sys/dev/sk/if_sk.c
@@ -1113,6 +1113,7 @@ static int sk_attach_xmac(dev)
default:
printf("skc%d: unsupported PHY type: %d\n",
sc->sk_unit, sc_if->sk_phytype);
+ SK_UNLOCK(sc);
return(ENODEV);
}
diff --git a/sys/pci/if_sk.c b/sys/pci/if_sk.c
index d238e30..bb0c414 100644
--- a/sys/pci/if_sk.c
+++ b/sys/pci/if_sk.c
@@ -1113,6 +1113,7 @@ static int sk_attach_xmac(dev)
default:
printf("skc%d: unsupported PHY type: %d\n",
sc->sk_unit, sc_if->sk_phytype);
+ SK_UNLOCK(sc);
return(ENODEV);
}
OpenPOWER on IntegriCloud