From: Jens Axboe Date: Wed, 19 Oct 2005 08:17:48 +0000 (+0200) Subject: [PATCH] fio: cpumask assignment should be a memcpy X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=57e0400d2f5acb75fcf62c8901d7fe95c92798bd;p=disktools.git [PATCH] fio: cpumask assignment should be a memcpy --- diff --git a/fio.c b/fio.c index b9c12e7..f6a2527 100644 --- a/fio.c +++ b/fio.c @@ -541,7 +541,7 @@ void add_job(const char *filename, int rw, int bs, int direct, int prio, int ran td->odirect = direct; td->bs = bs; td->delay_sleep = delay; - td->cpumask = cpumask; + memcpy(&td->cpumask, &cpumask, sizeof(cpumask)); if (rate) setup_rate(td, rate);