X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/90556fb8d47e7b68fd301dde9dbb3ae7495cf323..5eebf7385fedb1517b66b53c28e5aa6bb0a2be50:/bsd/nfs/nfs_boot.c?ds=inline diff --git a/bsd/nfs/nfs_boot.c b/bsd/nfs/nfs_boot.c index 98dbc2367..85de9123c 100644 --- a/bsd/nfs/nfs_boot.c +++ b/bsd/nfs/nfs_boot.c @@ -205,7 +205,7 @@ nfs_boot_init(nd, procp) if (netboot_iaddr(&my_ip) == FALSE) { printf("nfs_boot: networking is not initialized\n"); error = ENXIO; - goto failed; + goto failed_noswitch; } /* get the root path information */ @@ -286,9 +286,10 @@ nfs_boot_init(nd, procp) else { error = 0; } -#endif NO_MOUNT_PRIVATE - failed: +#endif /* NO_MOUNT_PRIVATE */ +failed: thread_funnel_switch(NETWORK_FUNNEL, KERNEL_FUNNEL); +failed_noswitch: return (error); } @@ -325,7 +326,7 @@ nfs_boot_getfh(nd, procp, v3) goto failed; } } -#endif NO_MOUNT_PRIVATE +#endif /* NO_MOUNT_PRIVATE */ failed: thread_funnel_switch(NETWORK_FUNNEL, KERNEL_FUNNEL); return (error);