return_desc = acpi_ut_create_buffer_object ((acpi_size) obj_desc->string.length + 1); 
return_desc = acpi_ut_create_buffer_object ( (acpi_size) obj_desc->string.length + 1); 
acpi_ex_convert_to_buffer (	union acpi_operand_object       *obj_desc,	union acpi_operand_object       **result_desc){	union acpi_operand_object       *return_desc;	u8                              *new_buf;	ACPI_FUNCTION_TRACE_PTR ("ex_convert_to_buffer", obj_desc);	switch (ACPI_GET_OBJECT_TYPE (obj_desc)) {	case ACPI_TYPE_BUFFER:		/* No conversion necessary */		*result_desc = obj_desc;		return_ACPI_STATUS (AE_OK);	case ACPI_TYPE_INTEGER:		/*		 * Create a new Buffer object.		 * Need enough space for one integer		 */		return_desc = acpi_ut_create_buffer_object (acpi_gbl_integer_byte_width);		if (!return_desc) {			return_ACPI_STATUS (AE_NO_MEMORY);		}		/* Copy the integer to the buffer, LSB first */		new_buf = return_desc->buffer.pointer;		ACPI_MEMCPY (new_buf,				  &obj_desc->integer.value,				  acpi_gbl_integer_byte_width);		break;	case ACPI_TYPE_STRING:		/*		 * Create a new Buffer object		 * Size will be the string length		 *		 * NOTE: Add one to the string length to include the null terminator.		 * The ACPI spec is unclear on this subject, but there is existing		 * ASL/AML code that depends on the null being transferred to the new		 * buffer.		 */		return_desc = acpi_ut_create_buffer_object ((acpi_size) obj_desc->string.length + 1);		if (!return_desc) {			return_ACPI_STATUS (AE_NO_MEMORY);		}		/* Copy the string to the buffer */		new_buf = return_desc->buffer.pointer;		ACPI_STRNCPY ((char *) new_buf, (char *) obj_desc->string.pointer,			obj_desc->string.length);		break;	default:		return_ACPI_STATUS (AE_TYPE);	}	/* Mark buffer initialized */	return_desc->common.flags |= AOPOBJ_DATA_VALID;	*result_desc = return_desc;	return_ACPI_STATUS (AE_OK);}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/44f6c01242da4e162f28d8e1216a8c7a91174605/exconvrt.c/buggy/drivers/acpi/executer/exconvrt.c