Re: [Qemu-devel] [PATCH] rbd: always set out parameter in qemu_rbd_snap_list

2011-12-07 Thread Kevin Wolf
Am 07.12.2011 02:05, schrieb Josh Durgin: > The caller expects psn_tab to be NULL when there are no snapshots or > an error occurs. This results in calling g_free on an invalid address. > > Reported-by: Oliver Francke > Signed-off-by: Josh Durgin Thanks, applied to the block branch. Kevin

[Qemu-devel] [PATCH] rbd: always set out parameter in qemu_rbd_snap_list

2011-12-06 Thread Josh Durgin
The caller expects psn_tab to be NULL when there are no snapshots or an error occurs. This results in calling g_free on an invalid address. Reported-by: Oliver Francke Signed-off-by: Josh Durgin --- block/rbd.c |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/block/rbd