diff options
-rw-r--r-- | security/smack/smackfs.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/security/smack/smackfs.c b/security/smack/smackfs.c index 76a5dca46404..337e32c551da 100644 --- a/security/smack/smackfs.c +++ b/security/smack/smackfs.c | |||
@@ -2035,10 +2035,8 @@ static ssize_t smk_write_revoke_subj(struct file *file, const char __user *buf, | |||
2035 | } | 2035 | } |
2036 | 2036 | ||
2037 | skp = smk_find_entry(cp); | 2037 | skp = smk_find_entry(cp); |
2038 | if (skp == NULL) { | 2038 | if (skp == NULL) |
2039 | rc = -EINVAL; | ||
2040 | goto free_out; | 2039 | goto free_out; |
2041 | } | ||
2042 | 2040 | ||
2043 | rule_list = &skp->smk_rules; | 2041 | rule_list = &skp->smk_rules; |
2044 | rule_lock = &skp->smk_rules_lock; | 2042 | rule_lock = &skp->smk_rules_lock; |