Skip to content
Commit 95637d91 authored by Aaron Conole's avatar Aaron Conole Committed by Jakub Kicinski
Browse files

net: openvswitch: release vport resources on failure

A recent commit introducing upcall packet accounting failed to properly
release the vport object when the per-cpu stats struct couldn't be
allocated.  This can cause dangling pointers to dp objects long after
they've been released.

Cc: wangchuanlei <wangchuanlei@inspur.com>
Fixes: 1933ea36

 ("net: openvswitch: Add support to count upcall packets")
Reported-by: default avatar <syzbot+8f4e2dcfcb3209ac35f9@syzkaller.appspotmail.com>
Signed-off-by: default avatarAaron Conole <aconole@redhat.com>
Acked-by: default avatarEelco Chaudron <echaudro@redhat.com>
Reviewed-by: default avatarMichal Swiatkowski <michal.swiatkowski@linux.intel.com>
Link: https://lore.kernel.org/r/20221220212717.526780-1-aconole@redhat.com
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent f2575c8f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment