Date: Wed, 03 Apr 2024 23:17:49 +0000 From: bugzilla-noreply@freebsd.org To: net@FreeBSD.org Subject: [Bug 277849] [bge] panic when attaching if_bge on Supermicro H13SSL-N Message-ID: <bug-277849-7501-wn7S9OW63D@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-277849-7501@https.bugs.freebsd.org/bugzilla/> References: <bug-277849-7501@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277849 --- Comment #3 from Martin Matuska <mm@FreeBSD.org> --- I can confirm that this workaround avoids the panic makes the network card operate: --- a/sys/net/if_media.c +++ b/sys/net/if_media.c @@ -272,19 +272,19 @@ ifmedia_ioctl(struct ifnet *ifp, struct ifreq *ifr, struct ifmedia *ifm, /* * Get list of available media and current media on interface. */ case SIOCGIFMEDIA:=20 case SIOCGIFXMEDIA:=20 { struct ifmedia_entry *ep; int i; - if (ifmr->ifm_count < 0) + if (ifmr->ifm_count < 0 || ifm->ifm_status =3D=3D NULL) return (EINVAL); if (cmd =3D=3D SIOCGIFMEDIA) { ifmr->ifm_active =3D ifmr->ifm_current =3D ifm->ifm= _cur ? compat_media(ifm->ifm_cur->ifm_media) : IFM_NON= E; } else { ifmr->ifm_active =3D ifmr->ifm_current =3D ifm->ifm= _cur ? ifm->ifm_cur->ifm_media : IFM_NONE; } --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-277849-7501-wn7S9OW63D>