diff options
-rw-r--r-- | arch/mips/kernel/cevt-r4k.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/kernel/cevt-r4k.c b/arch/mips/kernel/cevt-r4k.c index 804d2a2a19fe..dd6a18bc10ab 100644 --- a/arch/mips/kernel/cevt-r4k.c +++ b/arch/mips/kernel/cevt-r4k.c | |||
@@ -80,7 +80,7 @@ static unsigned int calculate_min_delta(void) | |||
80 | } | 80 | } |
81 | 81 | ||
82 | /* Sorted insert of 75th percentile into buf2 */ | 82 | /* Sorted insert of 75th percentile into buf2 */ |
83 | for (k = 0; k < i; ++k) { | 83 | for (k = 0; k < i && k < ARRAY_SIZE(buf2); ++k) { |
84 | if (buf1[ARRAY_SIZE(buf1) - 1] < buf2[k]) { | 84 | if (buf1[ARRAY_SIZE(buf1) - 1] < buf2[k]) { |
85 | l = min_t(unsigned int, | 85 | l = min_t(unsigned int, |
86 | i, ARRAY_SIZE(buf2) - 1); | 86 | i, ARRAY_SIZE(buf2) - 1); |