[PATCH 10/10] intel_cacheinfo: fix cpu hotplug error handling

2007-07-16 Thread Akinobu Mita
- Fix resource leakage in error case within detect_cache_attributes() - Introduce cache_dev_map cpumask to track whether cache interface for CPU is successfully added by cache_add_dev() or not. cache_add_dev() may fail with out of memory error. In order to avoid cache_remove_dev() with

[PATCH 10/10] intel_cacheinfo: fix cpu hotplug error handling

2007-07-16 Thread Akinobu Mita
- Fix resource leakage in error case within detect_cache_attributes() - Introduce cache_dev_map cpumask to track whether cache interface for CPU is successfully added by cache_add_dev() or not. cache_add_dev() may fail with out of memory error. In order to avoid cache_remove_dev() with