From: Julia Lawall Date: Thu, 15 Mar 2012 08:32:05 +0000 (+0100) Subject: ACPI: processor_driver: add missing kfree X-Git-Tag: v3.4-rc6~7^2~3^7~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c80f5b31f3c55a197f5323b93d1e3553429a427e;p=pandora-kernel.git ACPI: processor_driver: add missing kfree The function acpi_processor_add is stored in the ops.add field of a acpi_driver structure. This function is then called in acpi_bus_driver_init. On failure, this function clears the field device->driver_data, but does not free its contents. Thus the free has to be done by the add function. In acpi_processor_add, the corresponding value is pr. This value is currently freed on failure before storing it in device->driver_data, but not after. This free is added in the error handling code at the end of the function. The per_cpu variable processors is also cleared so that it does not refer to a dangling pointer. Signed-off-by: Julia Lawall Reviewed-by: Srivatsa S. Bhat Acked-by: Deepthi Dharwar Signed-off-by: Len Brown --- Reading git-diff-tree failed