]> git.proxmox.com Git - qemu.git/commit
block: Make find_image_format safe with NULL filename
authorKevin Wolf <kwolf@redhat.com>
Mon, 18 Mar 2013 15:20:27 +0000 (16:20 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 22 Mar 2013 16:51:32 +0000 (17:51 +0100)
commitf5866fa438bff586f215c137dc71edb4e0770536
tree693536fcf30715668dd6f4962ea3a839ad018e1e
parent08b392e1510b21d8c9bfa8a50525fae31014a2e2
block: Make find_image_format safe with NULL filename

In order to achieve this, the .bdrv_probe callbacks of all drivers must
cope with this. The DMG driver is the only one that bases its decision
on the filename and it needs to be changed.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
block/dmg.c