1. 12 6月, 2012 1 次提交
    • J
      qdev: release parent properties on dc->init failure · 266ca11a
      Jason Baron 提交于
      While looking into hot-plugging bridges, I can create a qemu segfault via:
      
      $ device_add pci-bridge
      
      Bridge chassis not specified. Each bridge is required to be assigned a unique chassis id > 0.
      **
      ERROR:qom/object.c:389:object_delete: assertion failed: (obj->ref == 0)
      
      I'm proposing to fix this by adding a call to 'object_unparent()', before the
      call to qdev_free(). I see there is already a precedent for this usage pattern as
      seen in qdev_simple_unplug_cb():
      
      /* can be used as ->unplug() callback for the simple cases */
      int qdev_simple_unplug_cb(DeviceState *dev)
      {
          /* just zap it */
          object_unparent(OBJECT(dev));
          qdev_free(dev);
          return 0;
      }
      Signed-off-by: NJason Baron <jbaron@redhat.com>
      Signed-off-by: NMichael S. Tsirkin <mst@redhat.com>
      266ca11a
  2. 07 6月, 2012 10 次提交
  3. 04 6月, 2012 1 次提交
  4. 30 5月, 2012 6 次提交
  5. 26 5月, 2012 2 次提交
  6. 25 5月, 2012 1 次提交
  7. 24 5月, 2012 1 次提交
    • S
      es1370: Fix debug code · f8687bab
      Stefan Weil 提交于
      When DEBUG_ES1370 is defined, the compiler shows these warnings:
      
      hw/es1370.c: In function ?es1370_update_voices?:
      hw/es1370.c:414: warning: format ?%d? expects type ?int?, but argument 3 has type ?size_t?
      hw/es1370.c: In function ?es1370_writel?:
      hw/es1370.c:582: warning: format ?%d? expects type ?int?, but argument 3 has type ?long int?
      hw/es1370.c:592: warning: format ?%d? expects type ?int?, but argument 3 has type ?long int?
      hw/es1370.c:609: warning: format ?%d? expects type ?int?, but argument 3 has type ?long int?
      hw/es1370.c: In function ?es1370_readl?:
      hw/es1370.c:751: warning: suggest braces around empty body in an ?if? statement
      
      Fix the format strings and add the missing braces.
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Signed-off-by: Nmalc <av1474@comtv.ru>
      f8687bab
  8. 22 5月, 2012 15 次提交
  9. 19 5月, 2012 2 次提交
  10. 17 5月, 2012 1 次提交