summaryrefslogtreecommitdiffstats
path: root/sys/dev/ral
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/dev/ral
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/dev/ral')
-rw-r--r--sys/dev/ral/if_ral.c2
1 files changed, 1 insertions, 1 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;
}
OpenPOWER on IntegriCloud