]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_net: fix return value check in receive_mergeable()
authorYunjian Wang <wangyunjian@huawei.com>
Mon, 4 Dec 2017 06:02:19 +0000 (14:02 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 7 Dec 2017 16:34:52 +0000 (18:34 +0200)
commit30cb610ca9e20c1f93cf6661973ebdb3420bd962
tree402ab23f3edf73fcea8a110b7176bb9c76e57db1
parentddc8f1b1e4f740d2df2ebb8ef61b5cd9b4c9807e
virtio_net: fix return value check in receive_mergeable()

The function virtqueue_get_buf_ctx() could return NULL, the return
value 'buf' need to be checked with NULL, not value 'ctx'.

Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c