Merge tag 'm68knommu-for-v5.14' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git] / security / apparmor / policy_unpack.c
index dc345ac..4e1f96b 100644 (file)
@@ -304,7 +304,7 @@ static bool unpack_u8(struct aa_ext *e, u8 *data, const char *name)
                if (!inbounds(e, sizeof(u8)))
                        goto fail;
                if (data)
-                       *data = get_unaligned((u8 *)e->pos);
+                       *data = *((u8 *)e->pos);
                e->pos += sizeof(u8);
                return true;
        }