diff options
author | glebius <glebius@FreeBSD.org> | 2006-05-17 07:38:58 +0000 |
---|---|---|
committer | glebius <glebius@FreeBSD.org> | 2006-05-17 07:38:58 +0000 |
commit | 2d778391877a5dfddee23a04baf6b08ba0984db5 (patch) | |
tree | dbbd3ec7d576568e48c60f4cb5c4bcb158478d32 /sys | |
parent | 2ace540d1f03d5efc4e4669657ab847e826a5d3c (diff) | |
download | FreeBSD-src-2d778391877a5dfddee23a04baf6b08ba0984db5.zip FreeBSD-src-2d778391877a5dfddee23a04baf6b08ba0984db5.tar.gz |
Fix static array overrun.
(This will be also fixed in next vendor release.)
Coverity ID: 916
Reviewed by: Jack Vogel
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/em/if_em_hw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/em/if_em_hw.c b/sys/dev/em/if_em_hw.c index 6639b44..e81de14 100644 --- a/sys/dev/em/if_em_hw.c +++ b/sys/dev/em/if_em_hw.c @@ -6027,7 +6027,7 @@ em_get_cable_length(struct em_hw *hw, { int32_t ret_val; uint16_t agc_value = 0; - uint16_t cur_agc, min_agc = IGP01E1000_AGC_LENGTH_TABLE_SIZE; + uint16_t cur_agc, min_agc = IGP01E1000_AGC_LENGTH_TABLE_SIZE - 1; uint16_t max_agc = 0; uint16_t i, phy_data; uint16_t cable_length; |