Received: from eggs.gnu.org ([2001:4830:134:3::10]:43617) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkY6N-0000yy-U2 for qemu-devel@nongnu.org; Tue, 21 Apr 2015 09:20:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YkY6K-0004WP-Na for qemu-devel@nongnu.org; Tue, 21 Apr 2015 09:20:35 -0400 Received: from mail-wg0-x230.google.com ([2a00:1450:400c:c00::230]:35926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YkY6K-0004W1-CK for qemu-devel@nongnu.org; Tue, 21 Apr 2015 09:20:32 -0400 Received: by wgsk9 with SMTP id k9so212796630wgs.3 for ; Tue, 21 Apr 2015 06:20:31 -0700 (PDT) Date: Tue, 21 Apr 2015 14:20:26 +0100 From: Stefan Hajnoczi Message-ID: <20150421132026.GC16345@stefanha-thinkpad.redhat.com> References: <1429091024-25098-1-git-send-email-stefanha@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="VywGB/WGlW4DM4P8" Content-Disposition: inline In-Reply-To: <1429091024-25098-1-git-send-email-stefanha@redhat.com> Subject: Re: [Qemu-devel] [PATCH for-2.4] m25p80: fix s->blk usage before assignment List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Kevin Wolf , Paolo Bonzini , Peter Crosthwaite , qemu-devel@nongnu.org --VywGB/WGlW4DM4P8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 15, 2015 at 10:43:44AM +0100, Stefan Hajnoczi wrote: > Delay the call to blk_blockalign() until s->blk has been assigned. >=20 > This never caused a crash because blk_blockalign(NULL, size) defaults to > 4096 alignment but it's technically incorrect. >=20 > Signed-off-by: Stefan Hajnoczi > --- > hw/block/m25p80.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) Thanks, applied to my block-next tree: https://github.com/stefanha/qemu/commits/block-next Stefan --VywGB/WGlW4DM4P8 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVNk6aAAoJEJykq7OBq3PIqPYIAJJSGQSlEoxtg6bQIz41aoW8 baiXx66IUAdnX6gnKmG445lVkTVLXpscjWFUelgJV4+gZj7I+hTjKsRJxcU5utlm sw/k16VcuIMgpYo7jSFCUFNUh6c1tbRuKIsEtIpSe9ejYWGNkM53EgQGm5iGzoWe Cmgv6ndHIvfsNv9Rb2zn1yt+binIV60PGg3J+MWQPEC6tG3njT6Z8r0CEcUrrjmR p0CozkJp57iDIiwd+tk6VE6FRsaaVQx+CFY158fc6FI7gU7jae90w0gjmTTa2hAm prLO3cTMyZEpAbcRqSH2xw4eSGQ/iKp210sMdTQQf8mY7qgBUr6F3nI9+fsJIQU= =Cqlt -----END PGP SIGNATURE----- --VywGB/WGlW4DM4P8--