[GIT PULL] cgroup fix for v5.1-rc5
From: Tejun Heo
Date: Fri Apr 19 2019 - 20:28:42 EST
Hello, Linus.
A patch to fix a RCU imbalance error in the devices cgroup
configuration error path.
Thanks.
The following changes since commit 9e98c678c2d6ae3a17cb2de55d17f69dddaa231b:
Linux 5.1-rc1 (2019-03-17 14:22:26 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup.git for-5.1-fixes
for you to fetch changes up to 0fcc4c8c044e117ac126ab6df4138ea9a67fa2a9:
device_cgroup: fix RCU imbalance in error case (2019-03-19 10:46:15 -0700)
----------------------------------------------------------------
Jann Horn (1):
device_cgroup: fix RCU imbalance in error case
security/device_cgroup.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/security/device_cgroup.c b/security/device_cgroup.c
index cd97929fac66..dc28914fa72e 100644
--- a/security/device_cgroup.c
+++ b/security/device_cgroup.c
@@ -560,7 +560,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:
--
tejun