[PATCH 06/13] intel_idle: Fix dangling registration on error path.

2016-04-06 Thread Len Brown
From: Richard Cochran In the module_init() method, if the per-CPU allocation fails, then the active cpuidle registration is not cleaned up. This patch fixes the issue by attempting the allocation before registration, and then cleaning it up again on registration failure.

[PATCH 06/13] intel_idle: Fix dangling registration on error path.

2016-04-06 Thread Len Brown
From: Richard Cochran In the module_init() method, if the per-CPU allocation fails, then the active cpuidle registration is not cleaned up. This patch fixes the issue by attempting the allocation before registration, and then cleaning it up again on registration failure. Signed-off-by: Richard