Branch: refs/heads/staging-8.0
Home: https://github.com/qemu/qemu
Commit: bea933e430249fb81e1c020ddf50511d0481d56e
https://github.com/qemu/qemu/commit/bea933e430249fb81e1c020ddf50511d0481d56e
Author: Kevin Wolf <[email protected]>
Date: 2023-05-30 (Tue, 30 May 2023)
Changed paths:
M block/export/export.c
Log Message:
-----------
block/export: Fix null pointer dereference in error path
There are some error paths in blk_exp_add() that jump to 'fail:' before
'exp' is even created. So we can't just unconditionally access exp->blk.
Add a NULL check, and switch from exp->blk to blk, which is available
earlier, just to be extra sure that we really cover all cases where
BlockDevOps could have been set for it (in practice, this only happens
in drv->create() today, so this part of the change isn't strictly
necessary).
Fixes: Coverity CID 1509238
Fixes: de79b52604e43fdeba6cee4f5af600b62169f2d2
Signed-off-by: Kevin Wolf <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Eric Blake <[email protected]>
Tested-by: Eric Blake <[email protected]>
Signed-off-by: Kevin Wolf <[email protected]>
(cherry picked from commit a184563778f2b8970eb93291f08108e66432a575)
Signed-off-by: Michael Tokarev <[email protected]>
Commit: f7f686b61cf7ee142c9264d2e04ac2c6a96d37f8
https://github.com/qemu/qemu/commit/f7f686b61cf7ee142c9264d2e04ac2c6a96d37f8
Author: Michael Tokarev <[email protected]>
Date: 2023-05-30 (Tue, 30 May 2023)
Changed paths:
M VERSION
Log Message:
-----------
Update version for 8.0.2 release
Signed-off-by: Michael Tokarev <[email protected]>
Compare: https://github.com/qemu/qemu/compare/dabb4183d17d...f7f686b61cf7