diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-05-04 13:42:13 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2019-05-04 13:42:13 +0000 |
commit | 981133a5123b0b1de254a4eac64c560a13a8223e (patch) | |
tree | 0816ec337584eb245a755ba8a7f4ec940a3969cc /sys/dev/pci/if_ixl.c | |
parent | 572ac30876984a9c735cd4c71e0c5004c5e0af94 (diff) |
fix array bounds check in ixl_search_link_speed()
ok dlg@
Diffstat (limited to 'sys/dev/pci/if_ixl.c')
-rw-r--r-- | sys/dev/pci/if_ixl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/if_ixl.c b/sys/dev/pci/if_ixl.c index 6cbf33b65c9..519ec14bd95 100644 --- a/sys/dev/pci/if_ixl.c +++ b/sys/dev/pci/if_ixl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ixl.c,v 1.37 2019/04/15 03:26:55 visa Exp $ */ +/* $OpenBSD: if_ixl.c,v 1.38 2019/05/04 13:42:12 jsg Exp $ */ /* * Copyright (c) 2013-2015, Intel Corporation @@ -3707,7 +3707,7 @@ ixl_search_link_speed(uint8_t link_speed) const struct ixl_speed_type *type; unsigned int i; - for (i = 0; i < nitems(ixl_phy_type_map); i++) { + for (i = 0; i < nitems(ixl_speed_type_map); i++) { type = &ixl_speed_type_map[i]; if (ISSET(type->dev_speed, link_speed)) |