]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
virtio_net: check virtqueue_add_sgs() return value
authorYunjian Wang <wangyunjian@huawei.com>
Sat, 10 Jul 2021 03:32:49 +0000 (11:32 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 10 Jul 2021 18:29:30 +0000 (11:29 -0700)
commit222722bc6ebfabf5d54467070f05cf9c0a55ea8c
tree2bee6d33e12a737debd51d39da5785637776f4f3
parent849fd444dd7383c437699997dcbca8d49d27b836
virtio_net: check virtqueue_add_sgs() return value

As virtqueue_add_sgs() can fail, we should check the return value.

Addresses-Coverity-ID: 1464439 ("Unchecked return value")
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/virtio_net.c