]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
tipc: Fix sk_buff leaks when link congestion is detected
authorAllan Stephens <allan.stephens@windriver.com>
Tue, 19 Apr 2011 14:17:58 +0000 (10:17 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Tue, 10 May 2011 20:03:53 +0000 (16:03 -0400)
commitbebc55aeffa72d8198e5c54cab9973a30e92f854
treefe7ec71280dd2ec218e831b5849e89a8d7dc37bc
parent7f47f5c751c93f2ca9e7f0ef6c0915162ac9e076
tipc: Fix sk_buff leaks when link congestion is detected

Modifies a TIPC send routine that did not discard the outgoing sk_buff
if it was not transmitted because of link congestion; this eliminates
the potential for buffer leakage in the many callers who did not clean up
the unsent buffer. (The two routines that previously did discard the unsent
buffer have been updated to eliminate their now-redundant clean up.)

Signed-off-by: Allan Stephens <allan.stephens@windriver.com>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
net/tipc/bcast.c
net/tipc/link.c