diff options
| author | Roman Kagan | 2021-06-10 12:07:37 +0200 |
|---|---|---|
| committer | Eric Blake | 2021-06-18 17:59:53 +0200 |
| commit | e8b35bf5dc8d4e98d91855a9c7b2ed905c8e6888 (patch) | |
| tree | bb992ae52e0197a78d052b42524119a6bc59c247 /python/README.rst | |
| parent | block/nbd: call socket_address_parse_named_fd() in advance (diff) | |
| download | qemu-e8b35bf5dc8d4e98d91855a9c7b2ed905c8e6888.tar.gz qemu-e8b35bf5dc8d4e98d91855a9c7b2ed905c8e6888.tar.xz qemu-e8b35bf5dc8d4e98d91855a9c7b2ed905c8e6888.zip | |
block/nbd: ensure ->connection_thread is always valid
Simplify lifetime management of BDRVNBDState->connect_thread by
delaying the possible cleanup of it until the BDRVNBDState itself goes
away.
This also reverts
0267101af6 "block/nbd: fix possible use after free of s->connect_thread"
as now s->connect_thread can't be cleared until the very end.
Signed-off-by: Roman Kagan <rvkagan@yandex-team.ru>
[vsementsov: rebase, revert 0267101af6 changes]
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
[eblake: tweak comment]
Reviewed-by: Eric Blake <eblake@redhat.com>
Message-Id: <20210610100802.5888-8-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'python/README.rst')
0 files changed, 0 insertions, 0 deletions
