artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d0fe8eb
)
Fix an off by one.
author
martijn
<martijn@openbsd.org>
Mon, 20 May 2024 21:22:43 +0000
(21:22 +0000)
committer
martijn
<martijn@openbsd.org>
Mon, 20 May 2024 21:22:43 +0000
(21:22 +0000)
OK miod@, claudio@
sys/dev/pci/if_mwx.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/if_mwx.c
b/sys/dev/pci/if_mwx.c
index
698b83d
..
9b3466a
100644
(file)
--- a/
sys/dev/pci/if_mwx.c
+++ b/
sys/dev/pci/if_mwx.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if_mwx.c,v 1.
2 2024/02/21 12:08:05 jsg
Exp $ */
+/* $OpenBSD: if_mwx.c,v 1.
3 2024/05/20 21:22:43 martijn
Exp $ */
/*
* Copyright (c) 2022 Claudio Jeker <claudio@openbsd.org>
* Copyright (c) 2021 MediaTek Inc.
@@
-1426,7
+1426,7
@@
mwx_txwi_alloc(struct mwx_softc *sc, int count)
}
}
- for (i = count; i >= MT_PACKET_ID_FIRST; i--)
+ for (i = count
- 1
; i >= MT_PACKET_ID_FIRST; i--)
LIST_INSERT_HEAD(&q->mt_freelist, &q->mt_data[i], mt_entry);
return 0;