]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rapidio/rionet: fix multicast packet transmit logic
authorAlexandre Bounine <alexandre.bounine@idt.com>
Fri, 28 Sep 2012 00:18:58 +0000 (10:18 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 3 Oct 2012 06:46:39 +0000 (16:46 +1000)
commitd42a6e8a69be9a78ce6dbb2f0b0eee01881d433d
treefc289f2998f924d39346d320f5bea0167b924888
parent694d3ca2d78e8bf88a7191fc48fa63994f1283d6
rapidio/rionet: fix multicast packet transmit logic

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>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/net/rionet.c