Re: [PATCH 2/2] block/qcow2: zero data_file child after free

2020-03-16 Thread John Snow
On 3/16/20 2:06 AM, Vladimir Sementsov-Ogievskiy wrote: > data_file being NULL doesn't seem to be a correct state, but it's > better than dead pointer and simpler to debug. > How important is it to have correct state in the middle of teardown? > Signed-off-by: Vladimir Sementsov-Ogievskiy >

[PATCH 2/2] block/qcow2: zero data_file child after free

2020-03-16 Thread Vladimir Sementsov-Ogievskiy
data_file being NULL doesn't seem to be a correct state, but it's better than dead pointer and simpler to debug. Signed-off-by: Vladimir Sementsov-Ogievskiy --- block/qcow2.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/block/qcow2.c b/block/qcow2.c index d44b45633d..6cdefe059f 100644