summaryrefslogtreecommitdiffstats
path: root/drivers/dma/coh901318.h
diff options
context:
space:
mode:
authorCong Wang <xiyou.wangcong@gmail.com>2018-01-22 13:49:27 -0800
committerDavid S. Miller <davem@davemloft.net>2018-01-22 16:55:18 -0500
commitc13da21cdb8085f1d9a53463c88a4d3967fe90fd (patch)
treea14a3cf60f7ebaed363046c62a89ad942405ff15 /drivers/dma/coh901318.h
parent208e0b17329cd802088c79f399835d51b9710df8 (diff)
downloadop-kernel-dev-c13da21cdb8085f1d9a53463c88a4d3967fe90fd.zip
op-kernel-dev-c13da21cdb8085f1d9a53463c88a4d3967fe90fd.tar.gz
tun: avoid calling xdp_rxq_info_unreg() twice
Similarly to tx ring, xdp_rxq_info is only registered when !tfile->detached, so we need to avoid calling xdp_rxq_info_unreg() twice too. The helper tun_cleanup_tx_ring() already checks for this properly, so it is correct to put xdp_rxq_info_unreg() just inside there. Reported-by: syzbot+1c788d7ce0f0888f1d7f@syzkaller.appspotmail.com Fixes: 8565d26bcb2f ("Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net") Cc: Jason Wang <jasowang@redhat.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/dma/coh901318.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud