pnv/phb3: Convert 1u to 1ull
commit5a205fcf7700abe442b374d76a8c4edea92eecc7
authorGreg Kurz <groug@kaod.org>
Wed, 12 Feb 2020 18:54:00 +0000 (12 19:54 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Thu, 20 Feb 2020 22:15:04 +0000 (21 09:15 +1100)
tree41ebd800984eb43329e7eba51ceaacc0b0af5b17
parent19b5c4186eccc519e6906838b288b2e206d43efe
pnv/phb3: Convert 1u to 1ull

As reported by Coverity defect CID 1419397, the 'j' variable goes up to
63 and shouldn't be used to left shift a 32-bit integer.

The result of the operation goes to a 64-bit integer : use a 64-bit
constant.

Reported-by: Coverity CID 1419397 Bad bit shift operation
Fixes: 9ae1329ee2fe "ppc/pnv: Add models for POWER8 PHB3 PCIe Host bridge"
Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <158153364010.3229002.8004283672455615950.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/pci-host/pnv_phb3_msi.c