]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/net/e1000: fix integer endianness
authorShannon Zhao <zhaoshenglong@huawei.com>
Fri, 13 Mar 2015 05:21:59 +0000 (13:21 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 27 Mar 2015 10:23:50 +0000 (10:23 +0000)
commit4e60a250d395ef0d04eb8b6489cc5f7615a8909b
treea8ae67eb8e0da84a1b1d58019991f7273a4fc7c0
parent4ad9e2b36e1e00fe5b96c3448ecd673e11c4d6d8
hw/net/e1000: fix integer endianness

It's detected by coverity.In is_vlan_packet s->mac_reg[VET] is
unsigned int but is dereferenced as a narrower unsigned short.
This may lead to unexpected results depending on machine
endianness.

Signed-off-by: Shannon Zhao <zhaoshenglong@huawei.com>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Message-id: 1426224119-8352-1-git-send-email-zhaoshenglong@huawei.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/net/e1000.c