[PATCH] fio: cpumask assignment should be a memcpy
authorJens Axboe <axboe@suse.de>
Wed, 19 Oct 2005 08:17:48 +0000 (10:17 +0200)
committerJens Axboe <axboe@suse.de>
Wed, 19 Oct 2005 08:17:48 +0000 (10:17 +0200)
fio.c

diff --git a/fio.c b/fio.c
index b9c12e7442e52182b2bc689c7090d97f6a51faff..f6a25271100e9016eb4d9af210ad900674e493a6 100644 (file)
--- 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);