]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rapidio/rionet: fix multicast packet transmit logic
authorAlexandre Bounine <alexandre.bounine@idt.com>
Fri, 5 Oct 2012 00:15:48 +0000 (17:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:50:20 +0000 (05:50 +0900)
commit40c975a26226ae76d5d0809dc383544cdf3a11d7
tree78ffd2b510b18162f22c60deaaff190d367711f6
parente23dfd7c2925856d19b875b1fbb2a0cd5c67180b
rapidio/rionet: fix multicast packet transmit logic

commit 7c4a6106d6451fc03c491e61df37c044505d843a upstream.

Fix multicast packet transmit logic to account for repetitive transmission
of single skb:
- correct check for available buffers (this bug may produce NULL pointer
  crash dump in case of heavy traffic);
- update skb user count (incorrect user counter causes a warning dump from
  net_tx_action routine during multicast transfers in systems with three or
  more rionet participants).

Signed-off-by: Alexandre Bounine <alexandre.bounine@idt.com>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/rionet.c