]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 5 Oct 2012 18:05:19 +0000 (03:05 +0900)
commit7c4a6106d6451fc03c491e61df37c044505d843a
tree4eaf5ab00c18973bfe444136919c2dc18b2abaaa
parentde4ec99c32cca755a11f91abb86ed94ce11f2e60
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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/rionet.c