diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-06-20 09:38:25 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2013-06-20 09:38:25 +0000 |
commit | 4d94fbeacc12993e6879d0f1f124aeee3eaddb70 (patch) | |
tree | 7ca757a1bc57371d23a3e31ae538df65e1543c26 /sys/dev/pci | |
parent | 3d13812ef33bfbd4535cddc50d4e511bf0da2ea9 (diff) |
Allocate the various hook head descriptors as part of the ifnet
structure rather than doing various M_WAITOK allocations during
the *attach() functions, we always rely on them anyway.
ok mikeb@, uebayasi@
Diffstat (limited to 'sys/dev/pci')
-rw-r--r-- | sys/dev/pci/if_art.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_art.c b/sys/dev/pci/if_art.c index 9a50ad6e725..ef6d1825ef8 100644 --- a/sys/dev/pci/if_art.c +++ b/sys/dev/pci/if_art.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_art.c,v 1.18 2010/06/29 07:12:31 matthew Exp $ */ +/* $OpenBSD: if_art.c,v 1.19 2013/06/20 09:38:24 mpi Exp $ */ /* * Copyright (c) 2004,2005 Internet Business Solutions AG, Zurich, Switzerland @@ -174,7 +174,7 @@ art_softc_attach(struct device *parent, struct device *self, void *aux) /* Set linkstate hook to track link state changes done by sppp. */ sc->art_linkstatehook = hook_establish( - sc->art_channel->cc_ifp->if_linkstatehooks, 0, art_linkstate, sc); + &sc->art_channel->cc_ifp->if_linkstatehooks, 0, art_linkstate, sc); /* Schedule the timeout one second from now. */ timeout_add_sec(&sc->art_onesec, 1); |