Re: [Qemu-devel] [PATCH v6 1/9] block: Always set *file in get_block_status

2017-01-16 Thread Eric Blake
On 01/13/2017 02:52 PM, Max Reitz wrote: > *file should always be set (to NULL, if nothing else) instead of leaving > it dangling sometimes. This should also be documented so callers can > rely on this behavior. > > Signed-off-by: Max Reitz > --- > block/io.c | 6 -- > 1

[Qemu-devel] [PATCH v6 1/9] block: Always set *file in get_block_status

2017-01-13 Thread Max Reitz
*file should always be set (to NULL, if nothing else) instead of leaving it dangling sometimes. This should also be documented so callers can rely on this behavior. Signed-off-by: Max Reitz --- block/io.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git