]> git.baikalelectronics.ru Git - kernel.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)
commit8c42da3ce37c62bee61599e0b87abf7b2e60a9db
tree2bee6d33e12a737debd51d39da5785637776f4f3
parentd3c2d0327312df1ef9f965c8dd3d7267b6c26945
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