summaryrefslogtreecommitdiff
path: root/net/caif
diff options
context:
space:
mode:
authorRichard Cochran <rcochran@linutronix.de>2016-04-07 00:00:52 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2016-04-07 23:10:56 +0300
commite9df69ccd1322e87eee10f28036fad9e6c71f8dd (patch)
tree0f51f52ff6d92a502dddb07814cdf19547030263 /net/caif
parent51319918bcc31f901646fc66348d41cf74ee0566 (diff)
downloadlinux-e9df69ccd1322e87eee10f28036fad9e6c71f8dd.tar.xz
intel_idle: Fix dangling registration on error path.
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 Cochran <rcochran@linutronix.de> Signed-off-by: Len Brown <len.brown@intel.com> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'net/caif')
0 files changed, 0 insertions, 0 deletions