qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/3] Refactor device_set_realized to avoid resource leak.
@ 2014-08-19  9:41 arei.gonglei
  2014-08-19  9:41 ` [Qemu-devel] [PATCH 1/3] qdev: add missing error check arei.gonglei
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: arei.gonglei @ 2014-08-19  9:41 UTC (permalink / raw)
  To: qemu-devel
  Cc: peter.crosthwaite, weidong.huang, mst, peter.huangpeng, Gonglei,
	imammedo, pbonzini, afaerber

From: Gonglei <arei.gonglei@huawei.com>

after committing
  [PATCH v6 0/9] Refactor PCI/SHPC/PCIE hotplug to use a more generic hotplug API

if devcie hotplgging failed, will casuse resource leak.

This patch series include address resouce leak and two other issuses.


BTW, for patch 2/3, checkpatch.py report a warning, but I have no idea how
to handle this probleam. Any ideas?

WARNING: line over 80 characters
#90: FILE: hw/core/qdev.c:866:
+                       dev->alias_required_for_version);

total: 0 errors, 1 warnings, 87 lines checked

Please review, thanks in advance.

Gonglei (3):
  qdev: add missing error check
  qdev: Refactor device_set_realized to avoid resource
  pcie: using error_setg instead of impolite assert

 hw/core/qdev.c | 80 +++++++++++++++++++++++++++++++++++++---------------------
 hw/pci/pcie.c  |  6 ++++-
 2 files changed, 56 insertions(+), 30 deletions(-)

-- 
1.7.12.4

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2014-08-20  2:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-19  9:41 [Qemu-devel] [PATCH 0/3] Refactor device_set_realized to avoid resource leak arei.gonglei
2014-08-19  9:41 ` [Qemu-devel] [PATCH 1/3] qdev: add missing error check arei.gonglei
2014-08-19 13:50   ` Peter Crosthwaite
2014-08-19 14:03     ` Paolo Bonzini
2014-08-20  2:29       ` Gonglei (Arei)
2014-08-20  2:27     ` Gonglei (Arei)
2014-08-19  9:41 ` [Qemu-devel] [PATCH 2/3] qdev: Refactor device_set_realized to avoid resource leak arei.gonglei
2014-08-19 13:46   ` Peter Crosthwaite
2014-08-20  2:36     ` Gonglei (Arei)
2014-08-19  9:41 ` [Qemu-devel] [PATCH 3/3] pcie: using error_setg instead of impolite assert arei.gonglei
2014-08-19 13:50   ` Peter Crosthwaite
2014-08-20  2:54     ` Gonglei (Arei)
2014-08-19 21:31   ` Michael S. Tsirkin
2014-08-20  2:50     ` Gonglei (Arei)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).