diff options
author | Tony Lindgren <tony@atomide.com> | 2020-06-08 19:14:49 +0200 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2020-06-08 19:14:49 +0200 |
commit | 4263eb6880df8383fff0efb872278a99eb6142c8 (patch) | |
tree | 67ab9bf228e4f5f341f9408e055180932b39fe06 /security/apparmor/apparmorfs.c | |
parent | bus: ti-sysc: Increase max softreset wait (diff) | |
parent | ARM: dts: dra7-evm-common: Fix duplicate mailbox nodes (diff) | |
download | linux-4263eb6880df8383fff0efb872278a99eb6142c8.tar.xz linux-4263eb6880df8383fff0efb872278a99eb6142c8.zip |
Merge branch 'fixes-v5.7' into fixes
Diffstat (limited to 'security/apparmor/apparmorfs.c')
-rw-r--r-- | security/apparmor/apparmorfs.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/security/apparmor/apparmorfs.c b/security/apparmor/apparmorfs.c index 280741fc0f5f..f6a3ecfadf80 100644 --- a/security/apparmor/apparmorfs.c +++ b/security/apparmor/apparmorfs.c @@ -454,7 +454,7 @@ static ssize_t policy_update(u32 mask, const char __user *buf, size_t size, */ error = aa_may_manage_policy(label, ns, mask); if (error) - return error; + goto end_section; data = aa_simple_write_to_buffer(buf, size, size, pos); error = PTR_ERR(data); @@ -462,6 +462,7 @@ static ssize_t policy_update(u32 mask, const char __user *buf, size_t size, error = aa_replace_profiles(ns, label, mask, data); aa_put_loaddata(data); } +end_section: end_current_label_crit_section(label); return error; |