]> git.proxmox.com Git - mirror_qemu.git/commit
xen-block: report error condition from vbd_name_to_disk()
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 15 Feb 2019 16:25:33 +0000 (16:25 +0000)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 28 Feb 2019 17:21:12 +0000 (17:21 +0000)
commit2ae23f0ecf002203977b7337219e2413abd656ec
treeb4786e2a0f07297ca5196d272f0482848c8ef24e
parent210b9776376698c50060e5383ccfac1170ae01a2
xen-block: report error condition from vbd_name_to_disk()

The function needs to make sure it is passed a valid disk name. This is
easily done by making sure that the parsing loop results in a non-zero
value.

Spotted by Coverity: CID 1398640

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Message-Id: <20190215162533.19475-4-paul.durrant@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
hw/block/xen-block.c