Message ID | 1269970750-25624-5-git-send-email-john.johansen@canonical.com |
---|---|
State | Accepted |
Delegated to: | Andy Whitcroft |
Headers | show |
diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c index 20bdf9c..a475d7c 100644 --- a/security/apparmor/policy_unpack.c +++ b/security/apparmor/policy_unpack.c @@ -707,9 +707,10 @@ struct aa_profile *aa_unpack(void *udata, size_t size, return ERR_PTR(error); profile = unpack_profile(&e, sa); - if (IS_ERR(profile)) + if (IS_ERR(profile)) { sa->pos = e.pos - e.start; - + return profile; + } error = verify_profile(profile, sa); if (error) { aa_put_profile(profile);