xen-pciback: First reset, then free.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 4 Dec 2013 02:37:24 +0000 (21:37 -0500)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 23 May 2014 16:33:36 +0000 (12:33 -0400)
commitfcb8ce968fb5d476cbb3f1547ade0c05fc2f6c59
tree1d38e922c6f61d4dc0c3cd4057cd1bf92f6eaf14
parent8899035eec4105a10149817fdaf684f127670f8c
xen-pciback: First reset, then free.

We were doing the operations of freeing and reset in the wrong
order. Granted nothing broke because the reset functions just
set bar->which = 0.

But nonethless this was incorrect.

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