diff options
author | Wei Wang | 2018-12-28 10:26:26 +0800 |
---|---|---|
committer | Michael S. Tsirkin | 2019-01-14 20:15:19 -0500 |
commit | a229989d975eb926076307c1f2f5e4c6111768e7 (patch) | |
tree | d7ee69ba30271cc65a55831bd2d3b6172cc3c830 /arch/arc/plat-sim | |
parent | ddbeac07a39a81d82331a312d0578fab94fccbf1 (diff) |
virtio: don't allocate vqs when names[i] = NULL
Some vqs may not need to be allocated when their related feature bits
are disabled. So callers may pass in such vqs with "names = NULL".
Then we skip such vq allocations.
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Signed-off-by: Wei Wang <wei.w.wang@intel.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Cc: stable@vger.kernel.org
Fixes: 86a559787e6f ("virtio-balloon: VIRTIO_BALLOON_F_FREE_PAGE_HINT")
Diffstat (limited to 'arch/arc/plat-sim')
0 files changed, 0 insertions, 0 deletions