diff options
-rw-r--r-- | kernel/auditfilter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/auditfilter.c b/kernel/auditfilter.c index 2e896f8ae29e..9c8c23227c7f 100644 --- a/kernel/auditfilter.c +++ b/kernel/auditfilter.c | |||
@@ -800,8 +800,8 @@ static inline int audit_dupe_selinux_field(struct audit_field *df, | |||
800 | 800 | ||
801 | /* our own copy of se_str */ | 801 | /* our own copy of se_str */ |
802 | se_str = kstrdup(sf->se_str, GFP_KERNEL); | 802 | se_str = kstrdup(sf->se_str, GFP_KERNEL); |
803 | if (unlikely(IS_ERR(se_str))) | 803 | if (unlikely(!se_str)) |
804 | return -ENOMEM; | 804 | return -ENOMEM; |
805 | df->se_str = se_str; | 805 | df->se_str = se_str; |
806 | 806 | ||
807 | /* our own (refreshed) copy of se_rule */ | 807 | /* our own (refreshed) copy of se_rule */ |