Commit 84ebe375 authored by Markus Armbruster's avatar Markus Armbruster Committed by Kevin Wolf

block: Make device model's references to BlockBackend strong

Doesn't make a difference just yet, but it's the right thing to do.
Signed-off-by: default avatarMarkus Armbruster <>
Reviewed-by: default avatarBenoît Canet <>
Reviewed-by: default avatarKevin Wolf <>
Reviewed-by: default avatarMax Reitz <>
Signed-off-by: default avatarKevin Wolf <>
parent a7f53e26
......@@ -257,6 +257,7 @@ int blk_attach_dev(BlockBackend *blk, void *dev)
if (blk->dev) {
return -EBUSY;
blk->dev = dev;
......@@ -290,6 +291,7 @@ void blk_detach_dev(BlockBackend *blk, void *dev)
blk->dev_opaque = NULL;
bdrv_set_guest_block_size(blk->bs, 512);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment