diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-10-17 21:40:44 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2009-10-17 21:40:44 +0000 |
commit | ab7d7a630c9c0f262783bbf9426a0a6f710db675 (patch) | |
tree | bf9f6fd1cd22ef7f2d6b854c72e746befc7e1593 /sys/dev/pci/if_sk.c | |
parent | 57d112ecdd6c39f44ee3295b43b7c667db73b7f8 (diff) |
use sc->sk_bsize in the unmap call too; ok theo
Diffstat (limited to 'sys/dev/pci/if_sk.c')
-rw-r--r-- | sys/dev/pci/if_sk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pci/if_sk.c b/sys/dev/pci/if_sk.c index 0e7a2ef3608..7ae968d3037 100644 --- a/sys/dev/pci/if_sk.c +++ b/sys/dev/pci/if_sk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_sk.c,v 1.155 2009/10/15 17:54:56 deraadt Exp $ */ +/* $OpenBSD: if_sk.c,v 1.156 2009/10/17 21:40:43 martynas Exp $ */ /* * Copyright (c) 1997, 1998, 1999, 2000 @@ -1315,7 +1315,6 @@ skc_attach(struct device *parent, struct device *self, void *aux) pcireg_t command, memtype; pci_intr_handle_t ih; const char *intrstr = NULL; - bus_size_t size; u_int8_t skrs; char *revstr = NULL; @@ -1523,7 +1522,7 @@ skc_attach(struct device *parent, struct device *self, void *aux) fail_2: pci_intr_disestablish(pc, sc->sk_intrhand); fail_1: - bus_space_unmap(sc->sk_btag, sc->sk_bhandle, size); + bus_space_unmap(sc->sk_btag, sc->sk_bhandle, sc->sk_bsize); } int |