Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Hering <ohering@suse.de>2017-10-20 12:20:33 +0200
committerOlaf Hering <ohering@suse.de>2017-10-20 12:23:28 +0200
commite08a88072ebbd9e2233e0b9140f91595f0e738af (patch)
treea690dbb130aac78ea941beca61b5a3b86f618054
parentbf84febb24e37ba00b20d6ffb7198f6cb5ba924d (diff)
Drivers: hv: kvp: Use MAX_ADAPTER_ID_SIZE for translating
-rw-r--r--drivers/hv/hv_kvp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hv/hv_kvp.c b/drivers/hv/hv_kvp.c
index eefc72a49a5f..e1d5debcb0ed 100644
--- a/drivers/hv/hv_kvp.c
+++ b/drivers/hv/hv_kvp.c
@@ -319,7 +319,7 @@ static int process_ob_ipinfo(void *in_msg, void *out_msg, int op)
strlen((char *)in->body.kvp_ip_val.adapter_id),
UTF16_HOST_ENDIAN,
(wchar_t *)out->kvp_ip_val.adapter_id,
- MAX_IP_ADDR_SIZE);
+ MAX_ADAPTER_ID_SIZE);
if (len < 0)
return len;