artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ce1483
)
Fix the initial length check in iwx_fill_probe_req() to match iwm(4).
author
stsp
<stsp@openbsd.org>
Mon, 23 Aug 2021 08:59:31 +0000
(08:59 +0000)
committer
stsp
<stsp@openbsd.org>
Mon, 23 Aug 2021 08:59:31 +0000
(08:59 +0000)
Patch by zxystd from OpenIntelWireless.
sys/dev/pci/if_iwx.c
patch
|
blob
|
history
diff --git
a/sys/dev/pci/if_iwx.c
b/sys/dev/pci/if_iwx.c
index
8dc4961
..
1fc07f6
100644
(file)
--- a/
sys/dev/pci/if_iwx.c
+++ b/
sys/dev/pci/if_iwx.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: if_iwx.c,v 1.9
5 2021/08/20 01:33:44 kevlo Exp $
*/
+/* $OpenBSD: if_iwx.c,v 1.9
6 2021/08/23 08:59:31 stsp Exp $
*/
/*
* Copyright (c) 2014, 2016 genua gmbh <info@genua.de>
@@
-5594,7
+5594,7
@@
iwx_fill_probe_req(struct iwx_softc *sc, struct iwx_scan_probe_req *preq)
memset(preq, 0, sizeof(*preq));
- if (remain < sizeof(*wh) + 2
+ ic->ic_des_esslen
)
+ if (remain < sizeof(*wh) + 2)
return ENOBUFS;
/*