Revert "smackfs: Use rcu_assign_pointer() to ensure safe assignment in smk_set_cipso"
This reverts commit 436c78aac9
.
This commit is contained in:
parent
84c804134c
commit
f6feb5de62
1 changed files with 1 additions and 1 deletions
|
@ -920,7 +920,7 @@ static ssize_t smk_set_cipso(struct file *file, const char __user *buf,
|
|||
rc = smk_netlbl_mls(maplevel, mapcatset, &ncats, SMK_CIPSOLEN);
|
||||
if (rc >= 0) {
|
||||
old_cat = skp->smk_netlabel.attr.mls.cat;
|
||||
rcu_assign_pointer(skp->smk_netlabel.attr.mls.cat, ncats.attr.mls.cat);
|
||||
skp->smk_netlabel.attr.mls.cat = ncats.attr.mls.cat;
|
||||
skp->smk_netlabel.attr.mls.lvl = ncats.attr.mls.lvl;
|
||||
synchronize_rcu();
|
||||
netlbl_catmap_free(old_cat);
|
||||
|
|
Loading…
Reference in a new issue