gve: Do not fully free QPL pages on prefill errors
authorShailend Chand <shailend@google.com>
Sat, 14 Oct 2023 01:41:21 +0000 (01:41 +0000)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 17 Oct 2023 11:33:29 +0000 (13:33 +0200)
commit95535e37e8959f50e7aee365a5bdc9e5ed720443
treea915f6e8b78ca48186775cb743d16f5d9349540f
parent2b10740ce74abaea31c2cad4ff8e180549c4544b
gve: Do not fully free QPL pages on prefill errors

The prefill function should have only removed the page count bias it
added. Fully freeing the page will cause gve_free_queue_page_list to
free a page the driver no longer owns.

Fixes: 82fd151d38d9 ("gve: Reduce alloc and copy costs in the GQ rx path")
Signed-off-by: Shailend Chand <shailend@google.com>
Link: https://lore.kernel.org/r/20231014014121.2843922-1-shailend@google.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/google/gve/gve_rx.c