]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - security/device_cgroup.c
UBUNTU: SAUCE: apparmor: fix nnp subset check failure when, stacking
[mirror_ubuntu-bionic-kernel.git] / security / device_cgroup.c
index e363d2205c29c2167e1bfe0e8a3ed138d1d6d18d..c0d6a20e970c35f90f67994a9ee0ffbd65c1f2da 100644 (file)
@@ -561,7 +561,7 @@ static int propagate_exception(struct dev_cgroup *devcg_root,
                    devcg->behavior == DEVCG_DEFAULT_ALLOW) {
                        rc = dev_exception_add(devcg, ex);
                        if (rc)
-                               break;
+                               return rc;
                } else {
                        /*
                         * in the other possible cases: