VMCI: Release notification_bitmap in error path
notification_bitmap may not be released when VMCI_CAPS_DMA_DATAGRAM capability is missing from the device. Add missing 'err_free_notification_bitmap' label and use it instead of 'err_free_data_buffers' to avoid this. Fixes: eed2298d ("VMCI: dma dg: detect DMA datagram capability") Reported-by: NDan Carpenter <dan.carpenter@oracle.com> Reviewed-by: NBryan Tan <bryantan@vmware.com> Reviewed-by: NRajesh Jalisatgi <rjalisatgi@vmware.com> Signed-off-by: NVishnu Dasa <vdasa@vmware.com> Link: https://lore.kernel.org/r/20220318060040.31621-1-vdasa@vmware.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录