diff options
author | David Arinzon <[email protected]> | 2023-12-11 06:27:58 +0000 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-12-12 16:07:31 -0800 |
commit | 41db6f99b5489a0d2ef26afe816ef0c6118d1d47 (patch) | |
tree | b3590e7df0a3a5a4350e38d49f8d2690f82f57ae /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | f99cd56230f56c8b6b33713c5be4da5d6766be1f (diff) |
net: ena: Destroy correct number of xdp queues upon failure
The ena_setup_and_create_all_xdp_queues() function freed all the
resources upon failure, after creating only xdp_num_queues queues,
instead of freeing just the created ones.
In this patch, the only resources that are freed, are the ones
allocated right before the failure occurs.
Fixes: 548c4940b9f1 ("net: ena: Implement XDP_TX action")
Signed-off-by: Shahar Itzko <[email protected]>
Signed-off-by: David Arinzon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions