Stefan Hajnoczi c485cf9c92 m25p80: fix s->blk usage before assignment
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 <stefanha@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Message-id: 1429091024-25098-1-git-send-email-stefanha@redhat.com
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2015-04-28 15:36:09 +02:00
..
2015-03-19 11:11:55 +03:00
2015-04-28 15:36:08 +02:00
2015-04-28 15:36:08 +02:00
2015-04-04 09:45:59 +03:00
2015-04-28 15:36:08 +02:00
2015-03-27 15:48:11 -04:00
2015-03-19 11:11:55 +03:00
2015-03-27 10:23:50 +00:00
2015-04-28 15:36:08 +02:00
2014-10-24 12:19:11 +01:00
2015-04-28 15:36:08 +02:00
2015-04-28 15:36:08 +02:00
2015-03-19 11:11:55 +03:00
2015-03-10 17:07:28 +01:00
2015-03-20 09:50:08 +00:00