OSDN Git Service

stream: pass new base image format to bdrv_change_backing_file
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 8 May 2012 14:51:55 +0000 (16:51 +0200)
committerKevin Wolf <kwolf@redhat.com>
Thu, 10 May 2012 09:01:59 +0000 (11:01 +0200)
commitf6133def92a3575c9abf57d066108df53e67629e
tree3dd24a9140875c5649b35f4469ebace7220eec66
parent6e34360973ffe1effaa65978a2afbf8cc5a5d7a9
stream: pass new base image format to bdrv_change_backing_file

When an image is modified to point to the new backing file, the backing
file format is set to NULL, which means auto-probe.  This is wrong, in
fact it is a small security problem.

Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/stream.c