]> git.proxmox.com Git - qemu.git/commit - blockdev.c
block: Fix serial number assignment
authorLuiz Capitulino <lcapitulino@redhat.com>
Wed, 2 Jun 2010 20:46:31 +0000 (17:46 -0300)
committerKevin Wolf <kwolf@redhat.com>
Fri, 4 Jun 2010 13:20:54 +0000 (15:20 +0200)
commit653dbec7c97cb51d19636423902719e5850da265
tree2b5e6b92e8a952d73cd3d657420a12b5c5eebbeb
parent666daa68234b5b1758652633cab07d5ca6046a5b
block: Fix serial number assignment

We should use 'dinfo->serial' length, 'serial' is a pointer, so
the serial number length is currently limited to the pointer size.

This fixes https://bugs.launchpad.net/qemu/+bug/584143 and is also
valid for stable.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
blockdev.c