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-- | 14.5 KB |
Makefile | -rw-r--r-- | 2.0 KB |
blktrace.c | -rw-r--r-- | 42.1 KB |
ftrace.c | -rw-r--r-- | 97.3 KB |
power-traces.c | -rw-r--r-- | 418 bytes |
ring_buffer.c | -rw-r--r-- | 104.7 KB |
ring_buffer_benchmark.c | -rw-r--r-- | 10.5 KB |
rpm-traces.c | -rw-r--r-- | 474 bytes |
trace.c | -rw-r--r-- | 111.7 KB |
trace.h | -rw-r--r-- | 23.6 KB |
trace_branch.c | -rw-r--r-- | 9.1 KB |
trace_clock.c | -rw-r--r-- | 3.0 KB |
trace_entries.h | -rw-r--r-- | 6.8 KB |
trace_event_perf.c | -rw-r--r-- | 4.7 KB |
trace_events.c | -rw-r--r-- | 36.9 KB |
trace_events_filter.c | -rw-r--r-- | 47.5 KB |
trace_events_filter_test.h | -rw-r--r-- | 1.0 KB |
trace_export.c | -rw-r--r-- | 4.5 KB |
trace_functions.c | -rw-r--r-- | 8.2 KB |
trace_functions_graph.c | -rw-r--r-- | 34.9 KB |
trace_irqsoff.c | -rw-r--r-- | 15.5 KB |
trace_kdb.c | -rw-r--r-- | 3.0 KB |
trace_kprobe.c | -rw-r--r-- | 52.8 KB |
trace_mmiotrace.c | -rw-r--r-- | 9.0 KB |
trace_nop.c | -rw-r--r-- | 2.2 KB |
trace_output.c | -rw-r--r-- | 27.5 KB |
trace_output.h | -rw-r--r-- | 1.6 KB |
trace_printk.c | -rw-r--r-- | 7.5 KB |
trace_sched_switch.c | -rw-r--r-- | 5.8 KB |
trace_sched_wakeup.c | -rw-r--r-- | 14.0 KB |
trace_selftest.c | -rw-r--r-- | 20.3 KB |
trace_selftest_dynamic.c | -rw-r--r-- | 168 bytes |
trace_stack.c | -rw-r--r-- | 8.3 KB |
trace_stat.c | -rw-r--r-- | 8.2 KB |
trace_stat.h | -rw-r--r-- | 973 bytes |
trace_syscalls.c | -rw-r--r-- | 16.6 KB |
trace_workqueue.c | -rw-r--r-- | 7.4 KB |
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...