opnsense-src/sys/dev/vmware
Mark Peek 4e5c1be420 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 <zarychtam@plan-b.pwste.edu.pl>
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 0f14bcbe38)
2021-10-16 18:22:43 +00:00
..
pvscsi vmware: clean up empty lines in .c and .h files 2020-09-01 21:30:01 +00:00
vmci vmci: fix panic due to freeing unallocated resources 2021-10-16 18:22:43 +00:00
vmxnet3 iflib: ensure that tx interrupts enabled and cleanups 2021-01-07 14:07:35 -08:00