K 10 svn:author V 2 mp K 8 svn:date V 27 2021-10-17T18:51:19.737574Z K 7 svn:log V 711 vmci: fix panic due to freeing unallocated resources Summary: An error mapping PCI resources results in a panic due to unallocated resources being freed up. This change puts the appropriate checks in place to prevent the panic. PR: 252445 Reported by: Marek Zarychta Tested by: marcus MFC after: 1 week Sponsored by: VMware Test Plan: Along with user testing, also simulated error by inserting a ENXIO return in vmci_map_bars(). Reviewed by: marcus Subscribers: imp Differential Revision: https://reviews.freebsd.org/D32016 (cherry picked from commit 0f14bcbe384091c729464cb770372aeb79061070) Git Hash: b5d236785dc352a65bc29d97c8a89b40387eb7a0 Git Author: mp@FreeBSD.org END