commit | 03e9f8a05bce7330bcd9c5cc54c8e42d0fcbf993 | [log] [tgz] |
---|---|---|
author | Yunjian Wang <wangyunjian@huawei.com> | Mon Dec 04 14:02:19 2017 +0800 |
committer | Michael S. Tsirkin <mst@redhat.com> | Thu Dec 07 18:34:52 2017 +0200 |
tree | 402ab23f3edf73fcea8a110b7176bb9c76e57db1 | |
parent | 25f32223bce5c580e0392a176319a587d7a17e95 [diff] |
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>