aboutsummaryrefslogtreecommitdiff
path: root/block/quorum.c
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2015-04-15 10:43:44 +0100
committerKevin Wolf <kwolf@redhat.com>2015-04-28 15:36:09 +0200
commitc485cf9c9277ca9b3d5227c99a13c374e812f42b (patch)
treeff8f732cc74598d2639713fda1a3a0f896f65f81 /block/quorum.c
parentd07063e46047242c4f010ff9ddbff5e02f15d9e7 (diff)
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>
Diffstat (limited to 'block/quorum.c')
0 files changed, 0 insertions, 0 deletions