Tools: hv: Fix a bug in the key delete code
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 10 Aug 2018 23:06:07 +0000 (23:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Sep 2018 06:38:06 +0000 (08:38 +0200)
commit47358b34baa7deacaecda8b2d6196a72d5d54874
tree0cf3ad5d03f774cddcd82df7fd26fe8d74592cf4
parent888e989a753a076d8323fd0c353c0bfcf016f9e8
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: K. Y. Srinivasan <kys@microsoft.com>
Reported-by: David Binderman <dcb314@hotmail.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_kvp_daemon.c