summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authordamien <damien@FreeBSD.org>2005-07-08 19:13:49 +0000
committerdamien <damien@FreeBSD.org>2005-07-08 19:13:49 +0000
commit9530c73e6ce3a932f627ed1a3166dabdf5685b53 (patch)
tree4b89b4ee9f6e8bcead1df73050be641cda9fc4cd /sys
parentd732ff5ca26d05955ce97f2f7b9f6bb7d117120f (diff)
downloadFreeBSD-src-9530c73e6ce3a932f627ed1a3166dabdf5685b53.zip
FreeBSD-src-9530c73e6ce3a932f627ed1a3166dabdf5685b53.tar.gz
ral_init() takes a struct ral_softc as parameter not a struct ifnet.
Fixes a panic that occured when setting the interface parameters while the interface was associated. Approved by: re (scottl)
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ral/if_ral.c2
-rw-r--r--sys/dev/usb/if_ural.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ral/if_ral.c b/sys/dev/ral/if_ral.c
index b1962e9..f552a40 100644
--- a/sys/dev/ral/if_ral.c
+++ b/sys/dev/ral/if_ral.c
@@ -928,7 +928,7 @@ ral_media_change(struct ifnet *ifp)
return error;
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
- ral_init(ifp);
+ ral_init(sc);
return 0;
}
diff --git a/sys/dev/usb/if_ural.c b/sys/dev/usb/if_ural.c
index 04f9f6c..3e60518 100644
--- a/sys/dev/usb/if_ural.c
+++ b/sys/dev/usb/if_ural.c
@@ -685,7 +685,7 @@ ural_media_change(struct ifnet *ifp)
}
if ((ifp->if_flags & (IFF_UP | IFF_RUNNING)) == (IFF_UP | IFF_RUNNING))
- ural_init(ifp);
+ ural_init(sc);
RAL_UNLOCK(sc);
OpenPOWER on IntegriCloud