diff options
-rw-r--r-- | drivers/base/cacheinfo.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/base/cacheinfo.c b/drivers/base/cacheinfo.c index 5d5b5988e88b..cf78fa6d470d 100644 --- a/drivers/base/cacheinfo.c +++ b/drivers/base/cacheinfo.c | |||
@@ -615,6 +615,8 @@ static int cache_add_dev(unsigned int cpu) | |||
615 | this_leaf = this_cpu_ci->info_list + i; | 615 | this_leaf = this_cpu_ci->info_list + i; |
616 | if (this_leaf->disable_sysfs) | 616 | if (this_leaf->disable_sysfs) |
617 | continue; | 617 | continue; |
618 | if (this_leaf->type == CACHE_TYPE_NOCACHE) | ||
619 | break; | ||
618 | cache_groups = cache_get_attribute_groups(this_leaf); | 620 | cache_groups = cache_get_attribute_groups(this_leaf); |
619 | ci_dev = cpu_device_create(parent, this_leaf, cache_groups, | 621 | ci_dev = cpu_device_create(parent, this_leaf, cache_groups, |
620 | "index%1u", i); | 622 | "index%1u", i); |