Le 23/10/2020 à 08:12, Chen Qun a écrit : > From: Pan Nengyuan <[email protected]> > > local_err is not initialized to NULL, it will cause a assert error as below: > qemu/util/error.c:59: error_setv: Assertion `*errp == NULL' failed. > > Fixes: c6447510690 > Reported-by: Euler Robot <[email protected]> > Signed-off-by: Pan Nengyuan <[email protected]> > Reviewed-by: Stefano Garzarella <[email protected]> > Reviewed-by: Kevin Wolf <[email protected]> > Reviewed-by: Li Qiang <[email protected]> > Signed-off-by: Chen Qun <[email protected]> > --- > block/file-posix.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/block/file-posix.c b/block/file-posix.c > index c63926d592..b711124672 100644 > --- a/block/file-posix.c > +++ b/block/file-posix.c > @@ -2110,7 +2110,7 @@ static void raw_aio_attach_aio_context(BlockDriverState > *bs, > #endif > #ifdef CONFIG_LINUX_IO_URING > if (s->use_linux_io_uring) { > - Error *local_err; > + Error *local_err = NULL; > if (!aio_setup_linux_io_uring(new_context, &local_err)) { > error_reportf_err(local_err, "Unable to use linux io_uring, " > "falling back to thread pool: "); >
Applied to my trivial-patches branch. Thanks, Laurent
