commit | 4b30fbca4f64bc70c59867ad5769c37efb587ff4 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Fri May 21 17:10:33 2010 +0800 |
committer | Matthew Garrett <mjg@redhat.com> | Tue Aug 03 09:48:40 2010 -0400 |
tree | 8611f640ba3f855935f0be5f0ea2aa1c0b77e86e | |
parent | 9fe6206f400646a2322096b56c59891d530e8d51 [diff] |
intel_menlow: fix memory leaks in error path This patch includes below fixes in error path: 1. fix a memory leak if device_create_file failed in intel_menlow_add_one_attribute 2. properly free added attributes before return error in intel_menlow_register_sensor error handler 3. properly call acpi_bus_unregister_driver before return error in intel_menlow_module_init Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Matthew Garrett <mjg@redhat.com>