Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110686021
D34567.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
722 B
Referenced Files
None
Subscribers
None
D34567.diff
View Options
diff --git a/sys/nfs/bootp_subr.c b/sys/nfs/bootp_subr.c
--- a/sys/nfs/bootp_subr.c
+++ b/sys/nfs/bootp_subr.c
@@ -1501,7 +1501,7 @@
void
bootpc_init(void)
{
- struct bootpc_ifcontext *ifctx; /* Interface BOOTP contexts */
+ struct bootpc_ifcontext *ifctx = NULL; /* Interface BOOTP contexts */
struct bootpc_globalcontext *gctx; /* Global BOOTP context */
struct ifnet *ifp;
struct sockaddr_dl *sdl;
@@ -1571,9 +1571,13 @@
}
ifcnt++;
}
+
IFNET_RUNLOCK();
- if (ifcnt == 0)
- panic("%s: no eligible interfaces", __func__);
+ if (ifcnt == 0) {
+ printf("WARNING: BOOTP found no eligible network interfaces, skipping!\n");
+ goto out;
+ }
+
for (; ifcnt > 0; ifcnt--)
allocifctx(gctx);
#endif
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Feb 22, 9:41 PM (2 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16780810
Default Alt Text
D34567.diff (722 B)
Attached To
Mode
D34567: nfs: do not panic on bootpc_init when no interfaces are found
Attached
Detach File
Event Timeline
Log In to Comment