summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-05 22:40:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2009-06-05 22:40:32 +0000
commit142aa41d9e9f337c6be5a4c56d5e14d54bf4e6c5 (patch)
treecf045b5d715105f4d6a373c290946257b3f3300b /sys/dev
parent4e9d97f9bd4bf6ffea35c2fc1c968806bab268a6 (diff)
T
ariane's new allocator gave iwi dirty memory, and made a real bug fall out. The kva was being stored in a structure hidden by a cast, but passing the "structure" corrupts subsequent arguments to bus_dmamap_load(). group effort with ariane, kettenis, and oga.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/if_iwivar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwivar.h b/sys/dev/pci/if_iwivar.h
index 73d9fb37d11..c98d3ebc0ab 100644
--- a/sys/dev/pci/if_iwivar.h
+++ b/sys/dev/pci/if_iwivar.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwivar.h,v 1.19 2008/08/28 15:52:20 damien Exp $ */
+/* $OpenBSD: if_iwivar.h,v 1.20 2009/06/05 22:40:31 deraadt Exp $ */
/*-
* Copyright (c) 2004-2006
@@ -49,7 +49,7 @@ struct iwi_tx_radiotap_header {
struct iwi_cmd_ring {
bus_dmamap_t map;
bus_dma_segment_t seg;
- struct iwi_cmd_desc desc[IWI_CMD_RING_COUNT];
+ struct iwi_cmd_desc *desc;
int queued;
int cur;
int next;