]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitadd0a7cb81475896c350b14c7924b631115f153e
tree1d38e922c6f61d4dc0c3cd4057cd1bf92f6eaf14
parent4e80f9b968fe1b5cdc50f8ab937aa8112e391659
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