util: Zero out all of mask in util_set_thread_affinity
authorIan Romanick <ian.d.romanick@intel.com>
Tue, 8 Jun 2021 22:08:50 +0000 (15:08 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 15 Jun 2021 20:01:52 +0000 (20:01 +0000)
commita923e95b10152726a3cdf4bdbc35690425ce9bc3
tree818dee47ba47c218b5a7ae2757b7cb16a4486bd6
parent5971f29c8ffe677a2ba2eb70793378f8351dc783
util: Zero out all of mask in util_set_thread_affinity

memset operates in bytes, and there are 8-bits in a byte.  This is a
very easy to miss typo. :(

Fixes: 9758b1d416a1 ("util: add util_set_thread_affinity helpers including Windows support")

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11228>
src/util/u_thread.h