gallium/util: make sure cache line size is not zero
authorLeonid Shatz <leonid.shatz@ravellosystems.com>
Wed, 31 Dec 2014 18:07:44 +0000 (19:07 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 5 Jan 2015 16:58:39 +0000 (17:58 +0100)
commit5fea39ace311723dab53460ae7b51b80746e0d3f
treeca761eeead796c68b9a27a8bbf24af31264aab7f
parentb59c7ed0ab1ac5b6d9f8d409f1a90401ab7775b6
gallium/util: make sure cache line size is not zero

The "normal" detection (querying clflush size) already made sure it is
non-zero, however another method did not. This lead to crashes if this
value happened to be zero (apparently can happen in virtualized environments
at least).
This fixes https://bugs.freedesktop.org/show_bug.cgi?id=87913

Cc: "10.4" <mesa-stable@lists.freedesktop.org>
src/gallium/auxiliary/util/u_cpu_detect.c