Skip to content

Commit

Permalink
net: openvswitch: release vport resources on failure
Browse files Browse the repository at this point in the history
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 <[email protected]>
Fixes: 1933ea3 ("net: openvswitch: Add support to count upcall packets")
Reported-by: [email protected]
Signed-off-by: Aaron Conole <[email protected]>
Acked-by: Eelco Chaudron <[email protected]>
Reviewed-by: Michal Swiatkowski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
  • Loading branch information
apconole authored and kuba-moo committed Dec 22, 2022
1 parent f2575c8 commit 95637d9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions net/openvswitch/datapath.c

0 comments on commit 95637d9

Please sign in to comment.