]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - security/apparmor/policy_unpack.c
apparmor: Fix shadowed local variable in unpack_trans_table()
[mirror_ubuntu-artful-kernel.git] / security / apparmor / policy_unpack.c
index c600f4dd1783252a1fc429379cb1cca8b9728c9b..2d5a1a007b062a73f807db6bb81b8b42b79bf44b 100644 (file)
@@ -448,7 +448,7 @@ fail:
  */
 static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile)
 {
-       void *pos = e->pos;
+       void *saved_pos = e->pos;
 
        /* exec table is optional */
        if (unpack_nameX(e, AA_STRUCT, "xtable")) {
@@ -511,7 +511,7 @@ static bool unpack_trans_table(struct aa_ext *e, struct aa_profile *profile)
 
 fail:
        aa_free_domain_entries(&profile->file.trans);
-       e->pos = pos;
+       e->pos = saved_pos;
        return 0;
 }