[ovs-dev] [PATCH V4 11/24] datapath: fix possible memleak on destroy flow-table

Yi-Hung Wei yihung.wei at gmail.com
Wed Oct 14 17:44:32 UTC 2020


On Mon, Oct 12, 2020 at 1:28 PM Greg Rose <gvrose8192 at gmail.com> wrote:
>
> From: Tonghao Zhang <xiangxia.m.yue at gmail.com>
>
> Upstream commit:
>     commit 50b0e61b32ee890a75b4377d5fbe770a86d6a4c1
>     Author: Tonghao Zhang <xiangxia.m.yue at gmail.com>
>     Date:   Fri Nov 1 22:23:52 2019 +0800
>
>     net: openvswitch: fix possible memleak on destroy flow-table
>
>     When we destroy the flow tables which may contain the flow_mask,
>     so release the flow mask struct.
>
>     Signed-off-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
>     Tested-by: Greg Rose <gvrose8192 at gmail.com>
>     Acked-by: Pravin B Shelar <pshelar at ovn.org>
>     Signed-off-by: David S. Miller <davem at davemloft.net>
>
> Added additional compat layer fixup for WRITE_ONCE()
>
> Cc: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> Reviewed-by: Tonghao Zhang <xiangxia.m.yue at gmail.com>
> Signed-off-by: Greg Rose <gvrose8192 at gmail.com>
>
> ---
> V4 - Simplify the WRITE_ONCE macro implemention as suggested by
>      Yihung.
> ---
Looks good to me. Thanks!

Acked-by: Yi-Hung Wei <yihung.wei at gmail.com>


More information about the dev mailing list