[PATCH] ACPI: Fix memory leak in acpi_bind_one()

2012-10-12 Thread Jesper Juhl
Memory is allocated with kzalloc() and assigned to 'physical_node'. Then 'physical_node->node_id' is initialized with a call to 'find_first_zero_bit()', if that results in a value greater than ACPI_MAX_PHYSICAL_NODE we'll end up jumping to the 'err:' label and there leave the function and let

[PATCH] ACPI: Fix memory leak in acpi_bind_one()

2012-10-12 Thread Jesper Juhl
Memory is allocated with kzalloc() and assigned to 'physical_node'. Then 'physical_node-node_id' is initialized with a call to 'find_first_zero_bit()', if that results in a value greater than ACPI_MAX_PHYSICAL_NODE we'll end up jumping to the 'err:' label and there leave the function and let