Commit 2516ead0 authored by K. Y. Srinivasan's avatar K. Y. Srinivasan Committed by Greg Kroah-Hartman

Tools: hv: Fix a bug in the key delete code

commit 86503bd35dec0ce363e9fdbf5299927422ed3899 upstream.

Fix a bug in the key delete code - the num_records range
from 0 to num_records-1.
Signed-off-by: default avatarK. Y. Srinivasan <>
Reported-by: default avatarDavid Binderman <>
Cc: <>
Reviewed-by: default avatarMichael Kelley <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 590872d2
......@@ -286,7 +286,7 @@ static int kvp_key_delete(int pool, const __u8 *key, int key_size)
* Found a match; just move the remaining
* entries up.
if (i == num_records) {
if (i == (num_records - 1)) {
return 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment