diff options
author | damien <damien@FreeBSD.org> | 2005-07-08 19:13:49 +0000 |
---|---|---|
committer | damien <damien@FreeBSD.org> | 2005-07-08 19:13:49 +0000 |
commit | 9530c73e6ce3a932f627ed1a3166dabdf5685b53 (patch) | |
tree | 4b89b4ee9f6e8bcead1df73050be641cda9fc4cd /sys | |
parent | d732ff5ca26d05955ce97f2f7b9f6bb7d117120f (diff) | |
download | FreeBSD-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.c | 2 | ||||
-rw-r--r-- | sys/dev/usb/if_ural.c | 2 |
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); |