Commit 95637d9
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 <[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]>1 parent f2575c8 commit 95637d9
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1861 | 1861 | | |
1862 | 1862 | | |
1863 | 1863 | | |
1864 | | - | |
| 1864 | + | |
1865 | 1865 | | |
1866 | 1866 | | |
1867 | 1867 | | |
| |||
1876 | 1876 | | |
1877 | 1877 | | |
1878 | 1878 | | |
| 1879 | + | |
| 1880 | + | |
1879 | 1881 | | |
1880 | 1882 | | |
1881 | 1883 | | |
| |||
2323 | 2325 | | |
2324 | 2326 | | |
2325 | 2327 | | |
2326 | | - | |
| 2328 | + | |
2327 | 2329 | | |
2328 | 2330 | | |
2329 | 2331 | | |
| |||
2343 | 2345 | | |
2344 | 2346 | | |
2345 | 2347 | | |
| 2348 | + | |
| 2349 | + | |
2346 | 2350 | | |
2347 | 2351 | | |
2348 | 2352 | | |
| |||
0 commit comments