]> git.proxmox.com Git - qemu.git/commit
smbios: Fix -smbios type=0, release=... for big endian hosts
authorMarkus Armbruster <armbru@redhat.com>
Fri, 7 Jun 2013 13:00:35 +0000 (15:00 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 17 Jun 2013 23:01:42 +0000 (18:01 -0500)
commit93bc62438402a21c6b6fedc3c11c951438d506e0
treebc3792c0db0a3b3bb6db1008a14bb2a502ad88ae
parent61fbaee1a71b9d01a617fb44a6d80238779acb93
smbios: Fix -smbios type=0, release=... for big endian hosts

Classic endianness bug due to careless dirty coding: assuming reading
a byte from an int variable gets the least significant byte.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laszlo "ever the optimist" Ersek <lersek@redhat.com>
Message-id: 1370610036-10577-6-git-send-email-armbru@redhat.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit 527cd96f15348f4454d5bb71f69aaeb95461c90e)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/i386/smbios.c