Konrad Rzeszutek Wilk
bdc5c1812c
xen/pciback: Don't disable a PCI device that is already disabled.
While shuting down a HVM guest with pci devices passed through we
get this:
pciback 0000:04:00.0: restoring config space at offset 0x4 (was 0x100000, writing 0x100002)
------------[ cut here ]------------
WARNING: at drivers/pci/pci.c:1397 pci_disable_device+0x88/0xa0()
Hardware name: MS-7640
Device pciback
disabling already-disabled device
Modules linked in:
Pid: 53, comm: xenwatch Not tainted 3.9.0-rc1-20130304a+ #1
Call Trace:
[<ffffffff8106994a>] warn_slowpath_common+0x7a/0xc0
[<ffffffff81069a31>] warn_slowpath_fmt+0x41/0x50
[<ffffffff813cf288>] pci_disable_device+0x88/0xa0
[<ffffffff814554a7>] xen_pcibk_reset_device+0x37/0xd0
[<ffffffff81454b6f>] ? pcistub_put_pci_dev+0x6f/0x120
[<ffffffff81454b8d>] pcistub_put_pci_dev+0x8d/0x120
[<ffffffff814582a9>] __xen_pcibk_release_devices+0x59/0xa0
This fixes the bug.
CC: stable@vger.kernel.org
Reported-and-Tested-by: Sander Eikelenboom <linux@eikelenboom.it>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
2013-03-06 10:00:25 -05:00
..
2013-03-06 10:00:25 -05:00
2013-03-01 10:55:00 -05:00
2012-09-21 03:13:06 -07:00
2012-05-07 15:33:18 -04:00
2012-11-29 12:59:13 +00:00
2012-01-18 15:37:49 -08:00
2013-01-15 15:57:02 -05:00
2012-10-19 15:19:37 -04:00
2013-02-24 16:18:31 -08:00
2013-02-19 22:02:33 -05:00
2012-11-04 10:40:42 -05:00
2012-10-09 16:22:19 +09:00
2013-01-15 16:02:40 -05:00
2013-02-19 22:02:34 -05:00
2013-02-19 22:02:29 -05:00
2013-02-19 22:02:29 -05:00
2012-04-19 15:12:49 -04:00
2012-07-19 15:51:41 -04:00
2012-05-30 10:16:35 -04:00
2013-02-24 16:18:31 -08:00
2013-01-03 15:57:01 -08:00
2013-01-15 16:00:52 -05:00
2011-12-16 13:29:31 -05:00
2013-01-29 19:36:53 -08:00
2012-10-19 15:17:51 -04:00
2013-02-19 22:02:31 -05:00
2013-02-25 07:44:29 -05:00
2013-02-25 07:44:21 -05:00
2013-01-26 00:37:24 +01:00
2012-09-05 15:13:48 +02:00
2012-03-22 20:16:14 -07:00
2012-11-15 15:41:22 -08:00
2013-02-19 22:02:27 -05:00