summaryrefslogtreecommitdiff
path: root/arch/x86/kernel/ksysfs.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-10-21 13:09:18 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-10-21 13:09:18 +0200
commita2ab5fc41533c952706ebdfaa378bb746e535cc1 (patch)
tree9fb86bb4e9ecb67f7e651d284c2f12c6c5d4378f /arch/x86/kernel/ksysfs.c
parenta380f2edef65b2447a043251bb3c00a9d2153a8b (diff)
parent0e708fc602531b8355b5de6ea7c98f09129b223f (diff)
downloadlinux-a2ab5fc41533c952706ebdfaa378bb746e535cc1.tar.gz
Merge branch 'pm-sleep' into pm-core
Diffstat (limited to 'arch/x86/kernel/ksysfs.c')
-rw-r--r--arch/x86/kernel/ksysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/ksysfs.c b/arch/x86/kernel/ksysfs.c
index 4b0592ca9e47..8c1cc08f514f 100644
--- a/arch/x86/kernel/ksysfs.c
+++ b/arch/x86/kernel/ksysfs.c
@@ -299,7 +299,7 @@ static int __init create_setup_data_nodes(struct kobject *parent)
return 0;
out_clean_nodes:
- for (j = i - 1; j > 0; j--)
+ for (j = i - 1; j >= 0; j--)
cleanup_setup_data_node(*(kobjp + j));
kfree(kobjp);
out_setup_data_kobj: