[PATCH 1/2] reorder: invalidate buf from ready queue in drain

Stephen Hemminger stephen at networkplumber.org
Tue Feb 7 17:24:52 CET 2023


On Sat, 7 Jan 2023 16:19:38 +0100
Volodymyr Fialko <vfialko at marvell.com> wrote:

> Set drained buffers from ready queue to NULL, since their ownership
> returned to user. Otherwise it's possible that both user and library
> will attempt to free the packet.
> 
> Signed-off-by: Volodymyr Fialko <vfialko at marvell.com>

Looks correct to me.
Acked-by: Stephen Hemminger <stephen at networkplumber.org>


More information about the dev mailing list