Vishal Verma <vishal.l.verma@xxxxxxxxx> writes: > /** > + * acpi_evaluate_fit: Evaluate _FIT method to get an updated NFIT > + * @handle: ACPI device handle > + * @buf: buffer for the updated NFIT > + * > + * Evaluate device's _FIT method if present to get an updated NFIT > + */ > +acpi_status acpi_evaluate_fit(acpi_handle handle, struct acpi_buffer **buf) > +{ > + acpi_status status; > + struct acpi_buffer buffer = { ACPI_ALLOCATE_BUFFER, NULL }; > + > + status = acpi_evaluate_object(handle, "_FIT", NULL, &buffer); > + > + if (ACPI_FAILURE(status)) > + return status; > + > + *buf = &buffer; Umm, unless I'm missing something, you're returning a stack address. -Jeff -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html