hv_kvp.c (527c465a3c8716d93201ae34b7fc52679610596d) | hv_kvp.c (b36fda339729a974a8838978dcdc581d8ce68fd9) |
---|---|
1/* 2 * An implementation of key value pair (KVP) functionality for Linux. 3 * 4 * 5 * Copyright (C) 2010, Novell, Inc. 6 * Author : K. Y. Srinivasan <ksrinivasan@novell.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 339 unchanged lines hidden (view full) --- 348 __u64 val64; 349 int rc; 350 351 /* The transaction state is wrong. */ 352 if (kvp_transaction.state != HVUTIL_HOSTMSG_RECEIVED) 353 return; 354 355 message = kzalloc(sizeof(*message), GFP_KERNEL); | 1/* 2 * An implementation of key value pair (KVP) functionality for Linux. 3 * 4 * 5 * Copyright (C) 2010, Novell, Inc. 6 * Author : K. Y. Srinivasan <ksrinivasan@novell.com> 7 * 8 * This program is free software; you can redistribute it and/or modify it --- 339 unchanged lines hidden (view full) --- 348 __u64 val64; 349 int rc; 350 351 /* The transaction state is wrong. */ 352 if (kvp_transaction.state != HVUTIL_HOSTMSG_RECEIVED) 353 return; 354 355 message = kzalloc(sizeof(*message), GFP_KERNEL); |
356 if (!message) 357 return; 358 |
|
356 message->kvp_hdr.operation = operation; 357 message->kvp_hdr.pool = pool; 358 in_msg = kvp_transaction.kvp_msg; 359 360 /* 361 * The key/value strings sent from the host are encoded in 362 * in utf16; convert it to utf8 strings. 363 * The host assures us that the utf16 strings will not exceed --- 355 unchanged lines hidden --- | 359 message->kvp_hdr.operation = operation; 360 message->kvp_hdr.pool = pool; 361 in_msg = kvp_transaction.kvp_msg; 362 363 /* 364 * The key/value strings sent from the host are encoded in 365 * in utf16; convert it to utf8 strings. 366 * The host assures us that the utf16 strings will not exceed --- 355 unchanged lines hidden --- |