summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorkmacy <kmacy@FreeBSD.org>2008-12-16 02:48:12 +0000
committerkmacy <kmacy@FreeBSD.org>2008-12-16 02:48:12 +0000
commit81140652bf20ae41a8e681a9fb108fa4e324629a (patch)
tree779f42af1c10e623fa834242bcc5d12ca53828eb /sys
parentbf113303e635962d4c68f57b287dbfe18a3ee38e (diff)
downloadFreeBSD-src-81140652bf20ae41a8e681a9fb108fa4e324629a.zip
FreeBSD-src-81140652bf20ae41a8e681a9fb108fa4e324629a.tar.gz
don't unlock lle if it is NULL
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/if_ether.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/if_ether.c b/sys/netinet/if_ether.c
index 9a67712..b50e1d9 100644
--- a/sys/netinet/if_ether.c
+++ b/sys/netinet/if_ether.c
@@ -777,7 +777,8 @@ arp_ifinit(struct ifnet *ifp, struct ifaddr *ifa)
if (lle == NULL)
log(LOG_INFO, "arp_ifinit: cannot create arp "
"entry for interface address\n");
- LLE_RUNLOCK(lle);
+ else
+ LLE_RUNLOCK(lle);
ifa->ifa_rtrequest = NULL;
}
OpenPOWER on IntegriCloud