From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDrsC-0001iL-9t for qemu-devel@nongnu.org; Mon, 26 Aug 2013 04:10:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VDrs5-00005r-FG for qemu-devel@nongnu.org; Mon, 26 Aug 2013 04:10:04 -0400 Received: from e06smtp15.uk.ibm.com ([195.75.94.111]:52300) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VDrs5-00005b-5a for qemu-devel@nongnu.org; Mon, 26 Aug 2013 04:09:57 -0400 Received: from /spool/local by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 26 Aug 2013 09:04:07 +0100 Date: Mon, 26 Aug 2013 10:09:43 +0200 From: Cornelia Huck Message-ID: <20130826100943.48104393@gondolin> In-Reply-To: <1377302436-25193-14-git-send-email-afaerber@suse.de> References: <1377302436-25193-1-git-send-email-afaerber@suse.de> <1377302436-25193-14-git-send-email-afaerber@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 13/16] qom: Pass available size to object_initialize() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andreas =?UTF-8?B?RsOkcmJlcg==?= Cc: peter.maydell@linaro.org, Alexander Graf , qemu-devel@nongnu.org, Peter Crosthwaite , Andreas =?UTF-8?B?RsOkcmJlcg==?= , "open list:sPAPR" , Paul Brook , anthony@codemonkey.ws, "Edgar E. Iglesias" , Richard Henderson On Sat, 24 Aug 2013 02:00:33 +0200 Andreas F=C3=A4rber wrote: > This is to avoid objects initializing beyond allocated memory. >=20 > Inspired-by: Peter Maydell > Signed-off-by: Andreas F=C3=A4rber > --- > hw/core/qdev.c | 2 +- > hw/dma/xilinx_axidma.c | 6 ++++-- > hw/intc/xics.c | 2 +- > hw/misc/macio/macio.c | 13 +++++++------ > hw/net/xilinx_axienet.c | 6 ++++-- > hw/pci-host/prep.c | 2 +- > hw/pci-host/q35.c | 2 +- > hw/pci-host/versatile.c | 2 +- > hw/s390x/s390-virtio-bus.c | 12 ++++++------ > hw/s390x/virtio-ccw.c | 14 +++++++------- > hw/virtio/virtio-pci.c | 16 ++++++++-------- > include/qom/object.h | 6 ++++-- > qom/object.c | 9 +++++---- > 13 files changed, 50 insertions(+), 42 deletions(-) >=20 Acked-by: Cornelia Huck [virtio-ccw]