summaryrefslogtreecommitdiff
path: root/sys/dev/pci
diff options
context:
space:
mode:
authorStefan Sperling <stsp@cvs.openbsd.org>2021-08-23 08:59:32 +0000
committerStefan Sperling <stsp@cvs.openbsd.org>2021-08-23 08:59:32 +0000
commite00babe98f49d94492059d694a779b7b5df21f7a (patch)
tree8d1dff3880dd1bf6a516a97ead072d4bdc2a0806 /sys/dev/pci
parent94d6a2364c849f572cf18cacdd92d50cbee3dde5 (diff)
Fix the initial length check in iwx_fill_probe_req() to match iwm(4).
Patch by zxystd from OpenIntelWireless.
Diffstat (limited to 'sys/dev/pci')
-rw-r--r--sys/dev/pci/if_iwx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_iwx.c b/sys/dev/pci/if_iwx.c
index 8dc496174be..1fc07f62f52 100644
--- a/sys/dev/pci/if_iwx.c
+++ b/sys/dev/pci/if_iwx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_iwx.c,v 1.95 2021/08/20 01:33:44 kevlo Exp $ */
+/* $OpenBSD: if_iwx.c,v 1.96 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;
/*