diff --git a/module-nextgen/apparmor/procattr.c b/module-nextgen/apparmor/procattr.c index 11708c60a..09f2a1be4 100644 --- a/module-nextgen/apparmor/procattr.c +++ b/module-nextgen/apparmor/procattr.c @@ -159,6 +159,7 @@ int aa_setprocattr_changehat(char *hatinfo, size_t infosize) error = aa_change_hat(hat, magic); spin_unlock_irqrestore(&sd_lock, flags); + error = 0; out: if (token) { memset(token, 0, infosize);