Searched hist:"318 bbb6d5a1eae77eb5dc687bcc63c0f99558e21" (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/dev/xen/netfront/ |
H A D | netfront.c | diff 318bbb6d5a1eae77eb5dc687bcc63c0f99558e21 Fri Nov 03 10:28:16 CET 2023 Roger Pau Monné <royger@FreeBSD.org> xen-netfront: attempt to make cleanup idempotent
Current cleanup code assumes that all the fields are allocated and/or setup by the time cleanup is called, but this is not always true: a failure in mid-setup of the device will cause the functions to be called with possibly uninitialized fields.
Fix the functions to cope with such sate, while also attempting to make the cleanup idempotent.
Finally fix an error path during setup that would not mark the device as closed, and hence prevents the kernel from finishing booting.
Fixes: 96375eac945c ("xen-netfront: add multiqueue support") Sponsored by: Citrix Systems R&D
|