]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ACPI: power_meter: remove double kfree()
authorDarren Jenkins <darrenrjenkins@gmail.com>
Tue, 12 Jan 2010 12:37:07 +0000 (23:37 +1100)
committerLen Brown <len.brown@intel.com>
Wed, 20 Jan 2010 04:56:02 +0000 (23:56 -0500)
commit7f07a605a3929d2d94dcbad8ccb7d280958d21f9
tree0324eb959c005a4ba31d24c7e986f2a984c28616
parentc19bdb6126a5e1f43b4a4fc3c4b09c926667e5ef
ACPI: power_meter: remove double kfree()

resource->domain_devices can be double kfree()'d in a couple of places.
Fix this by setting num_domain_devices = 0 after the kfree().

Coverity CID: 13356, 13355, 13354

Signed-off-by: Darren Jenkins <darrenrjenkins@gmail.com>
Acked-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/power_meter.c