]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
xen/netback: only non-freed SKB is queued into tx_queue
authorAnnie Li <Annie.li@oracle.com>
Wed, 27 Jun 2012 00:46:58 +0000 (00:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Jun 2012 07:50:20 +0000 (00:50 -0700)
commit1e0b6eac6a150a35b45d019681b0021896354ae5
tree97b778fcefabf41c3cefce8eea3b476d26ee7ad4
parent7fa8ad6df71f4778b23e17b0106aaef02b518684
xen/netback: only non-freed SKB is queued into tx_queue

After SKB is queued into tx_queue, it will be freed if request_gop is NULL.
However, no dequeue action is called in this situation, it is likely that
tx_queue constains freed SKB. This patch should fix this issue, and it is
based on 3.5.0-rc4+.

This issue is found through code inspection, no bug is seen with it currently.
I run netperf test for several hours, and no network regression was found.

Signed-off-by: Annie Li <annie.li@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/xen-netback/netback.c