VMCI: Release notification_bitmap in error path
authorVishnu Dasa <vdasa@vmware.com>
Fri, 18 Mar 2022 06:00:40 +0000 (23:00 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 12:47:48 +0000 (13:47 +0100)
commitc8e9b30ccae605bf1dbeaf03971f9b83f70b928d
tree9feb4b08d33d4fb5b13e0d1ba9e8cd1f59ffbc00
parent5df0e734b8c39598effe0f17e5bd8ff7748a0693
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: eed2298d9360 ("VMCI: dma dg: detect DMA datagram capability")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Bryan Tan <bryantan@vmware.com>
Reviewed-by: Rajesh Jalisatgi <rjalisatgi@vmware.com>
Signed-off-by: Vishnu Dasa <vdasa@vmware.com>
Link: https://lore.kernel.org/r/20220318060040.31621-1-vdasa@vmware.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/misc/vmw_vmci/vmci_guest.c