selinux: cleanup the internal AVC counters on error in avc_update()
In avc_update_node() after calling avc_alloc_node() which, increments avc->avc_cache.active_nodes counter, but kmem_cache_free() were called when avc_xperms_populate() fails , which does not decrements the active_nodes count, resulting in the avc->avc_cache.active_nodes counter having false value.so calling avc_node_node() to fix it. Change-Id: Ic0298162cc766c0f21be7ab232e259766654dad3 Signed-off-by:Jaihind Yadav <jaihindyadav@codeaurora.org> Signed-off-by:
Ravi Kumar Siddojigari <rsiddoji@codeaurora.org> Signed-off-by:
vijay.rayabarapu <vijay.rayabarapu@codeaurora.org>
Loading
Please register or sign in to comment