diff options
-rw-r--r-- | fs/sysfs/file.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index 51398457fe00..52d9235e0291 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c @@ -497,6 +497,7 @@ bool sysfs_remove_file_self(struct kobject *kobj, const struct attribute *attr) void sysfs_remove_files(struct kobject *kobj, const struct attribute * const *ptr) { int i; + for (i = 0; ptr[i]; i++) sysfs_remove_file(kobj, ptr[i]); } |