diff --git a/security/apparmor/mount.c b/security/apparmor/mount.c index 7c8e6d748306..4b433cf1526f 100644 --- a/security/apparmor/mount.c +++ b/security/apparmor/mount.c @@ -683,6 +683,7 @@ int aa_pivotroot(struct aa_label *label, const struct path *old_path, aa_put_label(target); goto out; } + aa_put_label(target); } else /* already audited error */ error = PTR_ERR(target);