]> git.ipfire.org Git - thirdparty/qemu.git/commit - blockdev.c
blockdev: Keep a copy of DriveInfo.serial
authorKevin Wolf <kwolf@redhat.com>
Fri, 15 Mar 2013 09:35:06 +0000 (10:35 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 15 Mar 2013 15:07:49 +0000 (16:07 +0100)
commitbb44619b06c0bef20b658ff532cf850c16362ae7
tree7adc7541947c77e634077d8c1451da5aba62d633
parent376609cc6c03c2ffc8c323d804d27f95346cac08
blockdev: Keep a copy of DriveInfo.serial

Pointing to a QemuOpts element is surprising and can lead to subtle
use-after-free errors when the QemuOpts is freed after all options are
parsed.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
blockdev.c
include/sysemu/blockdev.h