gallium/os: Fix overflow on 32 bits
authorAxel Davy <axel.davy@ens.fr>
Thu, 6 Oct 2016 17:35:04 +0000 (19:35 +0200)
committerAxel Davy <axel.davy@ens.fr>
Mon, 10 Oct 2016 21:43:48 +0000 (23:43 +0200)
commit218459771a1801d7ad20dd340ac35a50f2b5b81a
treeb453dad7cbf09cedbca33259471149160bf99b85
parent9904581dc663543861c05ecf0ddd1a51a934f812
gallium/os: Fix overflow on 32 bits

On systems with more than 4GB of ram,
os_get_total_physical_memory was triggering an integer
overflow for the linux and haiku path, when on
32 bits.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94561

Signed-off-by: Axel Davy <axel.davy@ens.fr>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/auxiliary/os/os_misc.c