Revision c80f5b31f3c55a197f5323b93d1e3553429a427e authored by Julia Lawall on 15 March 2012, 08:32:05 UTC, committed by Len Brown on 30 March 2012, 07:30:34 UTC
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 <Julia.Lawall@lip6.fr> Reviewed-by: Srivatsa S. Bhat <srivatsa.bhat@linux.vnet.ibm.com> Acked-by: Deepthi Dharwar <deepthi@linux.vnet.ibm.com> Signed-off-by: Len Brown <len.brown@intel.com>
1 parent c6436f5
File | Mode | Size |
---|---|---|
Kconfig | -rw-r--r-- | 1.7 KB |
Makefile | -rw-r--r-- | 334 bytes |
autoprobe.c | -rw-r--r-- | 4.5 KB |
chip.c | -rw-r--r-- | 18.6 KB |
debug.h | -rw-r--r-- | 1.1 KB |
devres.c | -rw-r--r-- | 2.6 KB |
dummychip.c | -rw-r--r-- | 1.2 KB |
generic-chip.c | -rw-r--r-- | 9.2 KB |
handle.c | -rw-r--r-- | 4.6 KB |
internals.h | -rw-r--r-- | 5.5 KB |
irqdesc.c | -rw-r--r-- | 11.0 KB |
irqdomain.c | -rw-r--r-- | 5.1 KB |
manage.c | -rw-r--r-- | 41.8 KB |
migration.c | -rw-r--r-- | 1.8 KB |
pm.c | -rw-r--r-- | 2.9 KB |
proc.c | -rw-r--r-- | 11.2 KB |
resend.c | -rw-r--r-- | 1.9 KB |
settings.h | -rw-r--r-- | 3.9 KB |
spurious.c | -rw-r--r-- | 8.6 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...