opnsense-src/sys/dev/ena
Osama Abboud 418d3190d7 ena: Fix customer metrics deallocation statement place
Upstream commit [1] made if_alloc_domain() never fail, then also do the
wrappers if_alloc(), if_alloc_dev(), and if_gethandle().

Upstream commit [2] removed the NULL check conducted by the driver.
This commit also removes err_customer_metrics_alloc goto label.

Commit [2] leaves behind a floating free() statement that
deallocates customer_metrics_array. This commit places the
deallocation statement where it belongs.

[1] commit 4787572d05 ("ifnet: make if_alloc_domain() never fail")
[2] commit aa3860851b9f ("net: Remove unneeded NULL check for the allocated ifnet")

Approved by: cperciva (mentor)
Sponsored by: Amazon, Inc.

(cherry picked from commit 5517ca8486bfbf4d0cd369898f3e4d10cd614a9a)
2024-10-31 14:54:10 +00:00
..
ena.c ena: Fix customer metrics deallocation statement place 2024-10-31 14:54:10 +00:00
ena.h ena: Update driver version to v2.7.0 2024-01-14 21:18:11 +00:00
ena_datapath.c ena: Update the license dating to 2023 2024-01-14 21:18:11 +00:00
ena_datapath.h ena: Update the license dating to 2023 2024-01-14 21:18:11 +00:00
ena_netmap.c ena: Update the license dating to 2023 2024-01-14 21:18:11 +00:00
ena_netmap.h ena: Update the license dating to 2023 2024-01-14 21:18:11 +00:00
ena_rss.c ena(4): Stop checking for failures from malloc(M_WAITOK) 2024-09-30 12:44:21 +08:00
ena_rss.h ena: Update the license dating to 2023 2024-01-14 21:18:11 +00:00
ena_sysctl.c ena: Update the license dating to 2023 2024-01-14 21:18:11 +00:00
ena_sysctl.h ena: Update the license dating to 2023 2024-01-14 21:18:11 +00:00