xen/pciback: Save the number of MSI-X entries to be copied later.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 11 Feb 2016 21:10:24 +0000 (16:10 -0500)
committerDavid Vrabel <david.vrabel@citrix.com>
Mon, 15 Feb 2016 14:21:10 +0000 (14:21 +0000)
commitd159457b84395927b5a52adb72f748dd089ad5e5
treea5aa5db670f3112cae7629f99a09c3085aba8bfa
parent8d47065f7d1980dde52abb874b301054f3013602
xen/pciback: Save the number of MSI-X entries to be copied later.

Commit 8135cf8b092723dbfcc611fe6fdcb3a36c9951c5 (xen/pciback: Save
xen_pci_op commands before processing it) broke enabling MSI-X because
it would never copy the resulting vectors into the response.  The
number of vectors requested was being overwritten by the return value
(typically zero for success).

Save the number of vectors before processing the op, so the correct
number of vectors are copied afterwards.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
drivers/xen/xen-pciback/pciback_ops.c