Merge "selinux: cleanup the internal AVC counters on error in avc_update()"
This commit is contained in:
commit
b8f254271f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue