]> git.baikalelectronics.ru Git - 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)
commite5ebbcbb4aed391fa9e74dcd9e2c198bde29efd3
treefe7ec71280dd2ec218e831b5849e89a8d7dc37bc
parent7d56567d04d94a082eddfeffafd3340a0b7ef24f
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