mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-08-29 05:17:59 +00:00
properly set return code for changehat interface
This commit is contained in:
parent
7b15ddcef5
commit
b6430e3f83
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user