]> Git Repo - qemu.git/commit
block: Reset device model callbacks on detach
authorMarkus Armbruster <[email protected]>
Wed, 20 Jul 2011 16:23:36 +0000 (18:23 +0200)
committerKevin Wolf <[email protected]>
Mon, 1 Aug 2011 10:09:11 +0000 (12:09 +0200)
commita19712b0dbe43016fb17ec48bfff2f360225fe97
tree1e1b763a767b8aa21a3c75d56f4fe7449a9d2935
parentea8f942fe46dd10e0946f02ab9d698fb41e958f7
block: Reset device model callbacks on detach

BlockDriverState members change_cb and change_opaque are initially
null.  The device model may set them, with bdrv_set_change_cb().  If
the device model gets detached (hot unplug), they're left dangling.
Only safe because device hot unplug automatically destroys the
BlockDriverState.  But that's a questionable feature, best not to rely
on it.

Signed-off-by: Markus Armbruster <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
block.c
This page took 0.025916 seconds and 4 git commands to generate.