freebsd-skq/sys/dev/ena
Marcin Wojtas 9bf7da9517 Fix double-free bug within ena_detach()
There is ena_free_all_io_rings_resources() called twice on device
detach:

ena_detach():

ena_destroy_device():
/* First call */
ena_free_all_io_rings_resources()

/* Second call */
ena_free_all_io_rings_resources()

The double-free causes panic() on kldunload, for example.

As the ena_destroy_device() is also called by ena_reset_task() it is
better to stay unchanged. Thus, remove the "Second call" of the function.

Submitted by:  Maciej Bielski <mba@semihalf.com>
Obtained from: Semihalf
Sponsored by:  Amazon, Inc.
2020-05-26 16:02:10 +00:00
..
ena_datapath.c Allow disabling meta caching for ENA Tx path 2020-05-26 16:00:30 +00:00
ena_datapath.h Expose argument names for non static ENA driver functions 2020-05-26 15:41:53 +00:00
ena_netmap.c Create ENA IO queues with optional backoff 2020-05-26 15:58:48 +00:00
ena_netmap.h Expose argument names for non static ENA driver functions 2020-05-26 15:41:53 +00:00
ena_sysctl.c Create ENA IO queues with optional backoff 2020-05-26 15:58:48 +00:00
ena_sysctl.h Expose argument names for non static ENA driver functions 2020-05-26 15:41:53 +00:00
ena.c Fix double-free bug within ena_detach() 2020-05-26 16:02:10 +00:00
ena.h Allow disabling meta caching for ENA Tx path 2020-05-26 16:00:30 +00:00