On Wed, Jun 01, 2016 at 09:52:23AM +0800, Fam Zheng wrote: > Similar to the "!drv || !drv->bdrv_aio_ioctl" case above, here it is > okay to set co.ret and return. As pointed out by Paolo, a BH will be > created as necessary by the caller (bdrv_co_maybe_schedule_bh). > Besides, as pointed out by Kevin, "data" was leaked before. > > Reported-by: Kevin Wolf <[email protected]> > Reported-by: Paolo Bonzini <[email protected]> > Signed-off-by: Fam Zheng <[email protected]> > --- > block/io.c | 20 ++------------------ > 1 file changed, 2 insertions(+), 18 deletions(-)
Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan
signature.asc
Description: PGP signature
