Revert "[REVERT 2/2] "selinux: ensure we cleanup the internal AVC counters on error in avc_update()""

An upstream commit from 4.14 has addressed this issue.

This reverts commit 4c1dc99232b9489255c98eb9df1d3fad8a9ce5d6.

Signed-off-by: Sorayukii <sorayukii69@gmail.com>
This commit is contained in:
Chenyang Zhong 2021-07-28 14:42:39 -04:00 • committed by Sorayukii
commit 43272970da

View file

@ -907,7 +907,7 @@ static int avc_update_node(struct selinux_avc *avc,
if (orig->ae.xp_node) {
rc = avc_xperms_populate(node, orig->ae.xp_node);
if (rc) {
kmem_cache_free(avc_node_cachep, node);
avc_node_kill(node);
goto out_unlock;
}
}