Page MenuHomeFreeBSD

D50158.diff
No OneTemporary

D50158.diff

diff --git a/sys/compat/linuxkpi/common/src/linux_kobject.c b/sys/compat/linuxkpi/common/src/linux_kobject.c
--- a/sys/compat/linuxkpi/common/src/linux_kobject.c
+++ b/sys/compat/linuxkpi/common/src/linux_kobject.c
@@ -122,10 +122,10 @@
for (attr = t->default_attrs; *attr != NULL; attr++) {
error = sysfs_create_file(kobj, *attr);
- if (error)
+ if (error != 0)
break;
}
- if (error)
+ if (error != 0)
sysfs_remove_dir(kobj);
}

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 5, 9:22 PM (3 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30915315
Default Alt Text
D50158.diff (461 B)

Event Timeline