utids.c (bf61c8840efe60fd8f91446860b63338fb424158) utids.c (1d1ea1b723d9f239f736b8cf284327cbbf9d15d1)
1/******************************************************************************
2 *
3 * Module Name: utids - support for device Ids - HID, UID, CID
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

--- 327 unchanged lines hidden (view full) ---

336
337 string_area_size = 0;
338 for (i = 0; i < count; i++) {
339
340 /* String lengths include null terminator */
341
342 switch (cid_objects[i]->common.type) {
343 case ACPI_TYPE_INTEGER:
1/******************************************************************************
2 *
3 * Module Name: utids - support for device Ids - HID, UID, CID
4 *
5 *****************************************************************************/
6
7/*
8 * Copyright (C) 2000 - 2013, Intel Corp.

--- 327 unchanged lines hidden (view full) ---

336
337 string_area_size = 0;
338 for (i = 0; i < count; i++) {
339
340 /* String lengths include null terminator */
341
342 switch (cid_objects[i]->common.type) {
343 case ACPI_TYPE_INTEGER:
344
344 string_area_size += ACPI_EISAID_STRING_SIZE;
345 break;
346
347 case ACPI_TYPE_STRING:
345 string_area_size += ACPI_EISAID_STRING_SIZE;
346 break;
347
348 case ACPI_TYPE_STRING:
349
348 string_area_size += cid_objects[i]->string.length + 1;
349 break;
350
351 default:
350 string_area_size += cid_objects[i]->string.length + 1;
351 break;
352
353 default:
354
352 status = AE_TYPE;
353 goto cleanup;
354 }
355 }
356
357 /*
358 * Now that we know the length of the CIDs, allocate return buffer:
359 * 1) Size of the base structure +

--- 56 unchanged lines hidden ---
355 status = AE_TYPE;
356 goto cleanup;
357 }
358 }
359
360 /*
361 * Now that we know the length of the CIDs, allocate return buffer:
362 * 1) Size of the base structure +

--- 56 unchanged lines hidden ---