VMCI: Fix a couple of failure paths in vmci_guest_probe_device()
Quoted 9 lines · Vishnu Dasa
notification_bitmapmay not be released whenVMCI_CAPS_DMA_DATAGRAMcapability is missing from the device. Add missing 'err_free_notification_bitmap' label and use it instead of 'err_free_data_buffers' to avoid this.
free_irq()may be called to free an interrupt that was not allocated. Add missing 'if' statement to check forexclusive_vectorswhen freeing interrupt 1.
Quoted 7 lines
Reported-by Dan Carpenter <[email protected]>Reviewed-by Bryan Tan <[email protected]>Reviewed-by Rajesh Jalisatgi <[email protected]>Signed-off-by Vishnu Dasa <[email protected]>---
The patches which introduced these bugs are not in any released kernels nor RC yet, so this fix does not need to be backported.
So this has to get into 5.17-final? If not, it should be backported to 5.17, right? You should always include the "Fixes:" tag in the commit message so that we can figure this out.
And shouldn't this be 2 different patches? Please break up.
thanks,
greg k-h