Patch 1 fixes an off-by-one error in the cleanup loop. Using a do-while
loop ensures the current device index is also cleaned up.
Patch 2 moves the initialization of oct->props[i].netdev before queue
setup calls. This ensures that if queue setup fails, the cleanup function
can find the allocated netdev.
Signed-off-by: Zilin Guan <zilin@seu.edu.cn>
Changes in v2:
- Add patch 1 to fix an off-by-one error in the error handling loop logic.
Zilin Guan (2):
net: liquidio: Fix off-by-one error in setup_nic_devices() cleanup
net: liquidio: Initialize netdev pointer before queue setup
.../net/ethernet/cavium/liquidio/lio_main.c | 24 +++++++++----------
.../ethernet/cavium/liquidio/lio_vf_main.c | 4 ++--
2 files changed, 14 insertions(+), 14 deletions(-)
--
2.34.1