diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2010-11-15 23:19:35 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2010-11-15 23:19:35 +0000 |
commit | da4c0ccf789218e1e117dcd3059c49033d0319da (patch) | |
tree | 1b5fa5ade22f20b9645d83bc5bcbc2f62c46fcf3 /sys/dev/cardbus/com_cardbus.c | |
parent | 13661ce1f3730358bce2e48c68b58ef57e56d79b (diff) |
fix up a pointer bug introduced in the previous revision
jsg agrees, ok deraadt
Diffstat (limited to 'sys/dev/cardbus/com_cardbus.c')
-rw-r--r-- | sys/dev/cardbus/com_cardbus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/cardbus/com_cardbus.c b/sys/dev/cardbus/com_cardbus.c index 2abf85cdc37..5413c2aa65e 100644 --- a/sys/dev/cardbus/com_cardbus.c +++ b/sys/dev/cardbus/com_cardbus.c @@ -1,4 +1,4 @@ -/* $OpenBSD: com_cardbus.c,v 1.39 2010/03/27 21:40:13 jsg Exp $ */ +/* $OpenBSD: com_cardbus.c,v 1.40 2010/11/15 23:19:34 mikeb Exp $ */ /* $NetBSD: com_cardbus.c,v 1.4 2000/04/17 09:21:59 joda Exp $ */ /* @@ -237,9 +237,9 @@ com_cardbus_attach(struct device *parent, struct device *self, void *aux) struct com_softc *sc = (struct com_softc*)self; struct com_cardbus_softc *csc = (struct com_cardbus_softc*)self; struct cardbus_attach_args *ca = aux; - cardbus_devfunc_t ct = csc->cc_ct; + cardbus_devfunc_t ct; - csc->cc_ct = ca->ca_ct; + csc->cc_ct = ct = ca->ca_ct; csc->cc_tag = pci_make_tag(ca->ca_pc, ct->ct_bus, ct->ct_dev, ct->ct_func); csc->cc_pc = ca->ca_pc; |