]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/auditfilter.c
Driver core: allow to delay the uevent at device creation time
[linux-2.6-omap-h63xx.git] / kernel / auditfilter.c
index 2e896f8ae29e4ce81886f115395dcedd9f898acf..9c8c23227c7f28970f64de6e21cab6e8bfa08415 100644 (file)
@@ -800,8 +800,8 @@ static inline int audit_dupe_selinux_field(struct audit_field *df,
 
        /* our own copy of se_str */
        se_str = kstrdup(sf->se_str, GFP_KERNEL);
-       if (unlikely(IS_ERR(se_str)))
-           return -ENOMEM;
+       if (unlikely(!se_str))
+               return -ENOMEM;
        df->se_str = se_str;
 
        /* our own (refreshed) copy of se_rule */