diff mbox

[API-NEXT,PATCHv2,3/9] linux-generic: cpumask: zero mask before setting

Message ID 1437063949-24456-4-git-send-email-stuart.haslam@linaro.org
State Superseded
Headers show

Commit Message

Stuart Haslam July 16, 2015, 4:25 p.m. UTC
odp_cpumask_def_control() was neglecting to zero out the provided mask.

Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
---
 platform/linux-generic/odp_cpumask.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox

Patch

diff --git a/platform/linux-generic/odp_cpumask.c b/platform/linux-generic/odp_cpumask.c
index 1ea7dcb..c28153b 100644
--- a/platform/linux-generic/odp_cpumask.c
+++ b/platform/linux-generic/odp_cpumask.c
@@ -238,6 +238,7 @@  int odp_cpumask_def_worker(odp_cpumask_t *mask, int num)
 
 int odp_cpumask_def_control(odp_cpumask_t *mask, int num ODP_UNUSED)
 {
+	odp_cpumask_zero(mask);
 	/* By default all control threads on CPU 0 */
 	odp_cpumask_set(mask, 0);
 	return 1;