Merge "selinux: cleanup the internal AVC counters on error in avc_update()"

This commit is contained in:
qctecmdr 2019-12-26 19:42:18 -08:00 committed by Gerrit - the friendly Code Review server
commit b8f254271f

View file

@ -913,7 +913,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(avc, node);
goto out_unlock;
}
}