virtio_pci: Clear stale cpumask when setting irq affinity
authorJiang Liu <jiang.liu@linux.intel.com>
Thu, 4 Jun 2015 08:41:44 +0000 (16:41 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 4 Jun 2015 12:47:49 +0000 (14:47 +0200)
commit210d150e1f5da506875e376422ba31ead2d49621
tree7922be7bde9ecd9380de4973bad251833d957c7c
parent8a7b19d8b542b87bccc3eaaf81dcc90a5ca48aea
virtio_pci: Clear stale cpumask when setting irq affinity

The cpumask vp_dev->msix_affinity_masks[info->msix_vector] may contain
staled information when vp_set_vq_affinity() gets called, so clear it
before setting the new cpu bit mask.

Cc: stable@vger.kernel.org
Signed-off-by: Jiang Liu <jiang.liu@linux.intel.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_pci_common.c