X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/6d2010ae8f7a6078e10b361c6962983bab233e0f..13f56ec4e58bf8687e2a68032c093c0213dd519b:/bsd/kern/netboot.c?ds=sidebyside diff --git a/bsd/kern/netboot.c b/bsd/kern/netboot.c index 664f03ef7..1eb975ed2 100644 --- a/bsd/kern/netboot.c +++ b/bsd/kern/netboot.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2001-2010 Apple Inc. All rights reserved. + * Copyright (c) 2001-2012 Apple Inc. All rights reserved. * * @APPLE_OSREFERENCE_LICENSE_HEADER_START@ * @@ -591,6 +591,7 @@ find_interface(void) { struct ifnet * ifp = NULL; + dlil_if_lock(); if (rootdevice[0]) { ifp = ifunit((char *)rootdevice); } @@ -601,6 +602,7 @@ find_interface(void) break; ifnet_head_done(); } + dlil_if_unlock(); return (ifp); }