projects
/
linux-flexiantxendom0-natty.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
crypto: pcrypt - Dont calulate a callback cpu on empty callback cpumask
[linux-flexiantxendom0-natty.git]
/
crypto
/
pcrypt.c
diff --git
a/crypto/pcrypt.c
b/crypto/pcrypt.c
index
7153a50
..
794c172
100644
(file)
--- a/
crypto/pcrypt.c
+++ b/
crypto/pcrypt.c
@@
-82,6
+82,9
@@
static int pcrypt_do_parallel(struct padata_priv *padata, unsigned int *cb_cpu,
if (cpumask_test_cpu(cpu, cpumask->mask))
goto out;
+ if (!cpumask_weight(cpumask->mask))
+ goto out;
+
cpu_index = cpu % cpumask_weight(cpumask->mask);
cpu = cpumask_first(cpumask->mask);