]> git.baikalelectronics.ru Git - kernel.git/commit
bus: arm-ccn: Handle correctly no-more-cpus case
authorPawel Moll <pawel.moll@arm.com>
Thu, 15 Oct 2015 13:32:45 +0000 (14:32 +0100)
committerArnd Bergmann <arnd@arndb.de>
Thu, 15 Oct 2015 15:10:02 +0000 (17:10 +0200)
commit9db4f532ac76a1e76d7eb0039c7c603fb20bfe3a
tree27a98db1c8e54c655c33bf08de82c05f0f3aadd6
parentc449ca3eacab6f3a7de24af7fd50746a63529288
bus: arm-ccn: Handle correctly no-more-cpus case

When migrating events the driver picks another cpu using
cpumask_any_but() function, which returns value >= nr_cpu_ids
when there is none available, not a negative value as the code
assumed. Fixed now.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
drivers/bus/arm-ccn.c