From 44542c9752db26170c1d2dc5604a463cfa3c4c8b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 9 Jul 2015 19:11:04 +0000 Subject: [PATCH] ib_srpt: Follow-up for r6410 git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6411 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- srpt/src/ib_srpt.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/srpt/src/ib_srpt.c b/srpt/src/ib_srpt.c index 600439a9e..6cb4c4461 100644 --- a/srpt/src/ib_srpt.c +++ b/srpt/src/ib_srpt.c @@ -3872,8 +3872,7 @@ static ssize_t store_comp_v_mask(struct kobject *kobj, if (!alloc_cpumask_var(&mask, GFP_KERNEL)) goto out; #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 10, 0) - res = bitmap_parse(buf, count, cpumask_bits(mask), - NR_CPUS); + res = bitmap_parse(buf, count, cpumask_bits(mask), nr_cpumask_bits); #else res = cpumask_parse(buf, mask); #endif