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.
> 
> This never caused a crash because blk_blockalign(NULL, size) defaults to
> 4096 alignment but it's technically incorrect.
> 
> Signed-off-by: Stefan Hajnoczi <stefa...@redhat.com>
> ---
>  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

Attachment: pgpJXzw1qVA_c.pgp
Description: PGP signature

Reply via email to