aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/kobject_uevent.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/kobject_uevent.c b/lib/kobject_uevent.c
index 402765c3a9cb..27c6118afd1c 100644
--- a/lib/kobject_uevent.c
+++ b/lib/kobject_uevent.c
@@ -240,6 +240,7 @@ static int kobj_usermode_filter(struct kobject *kobj)
240 ops = kobj_ns_ops(kobj); 240 ops = kobj_ns_ops(kobj);
241 if (ops) { 241 if (ops) {
242 const void *init_ns, *ns; 242 const void *init_ns, *ns;
243
243 ns = kobj->ktype->namespace(kobj); 244 ns = kobj->ktype->namespace(kobj);
244 init_ns = ops->initial_ns(); 245 init_ns = ops->initial_ns();
245 return ns != init_ns; 246 return ns != init_ns;
@@ -390,6 +391,7 @@ static int kobject_uevent_net_broadcast(struct kobject *kobj,
390 ops = kobj_ns_ops(kobj); 391 ops = kobj_ns_ops(kobj);
391 if (!ops && kobj->kset) { 392 if (!ops && kobj->kset) {
392 struct kobject *ksobj = &kobj->kset->kobj; 393 struct kobject *ksobj = &kobj->kset->kobj;
394
393 if (ksobj->parent != NULL) 395 if (ksobj->parent != NULL)
394 ops = kobj_ns_ops(ksobj->parent); 396 ops = kobj_ns_ops(ksobj->parent);
395 } 397 }