Re: [PATCH 02/38] bus: arm-ccn: fix handling cpumask_any_but return value
From: Pawel Moll
Date: Mon Sep 21 2015 - 15:56:23 EST
Dnia 2015-09-21, Mon o godzinie 15:33 +0200, Andrzej Hajda pisze:
> cpumask_any_but returns value >= nr_cpu_ids if there are no more CPUs.
>
> The problem has been detected using proposed semantic patch
> scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci [1].
>
> [1]: http://permalink.gmane.org/gmane.linux.kernel/2038576
>
> Signed-off-by: Andrzej Hajda <a.hajda@xxxxxxxxxxx>
This has been already reported and discussed:
http://thread.gmane.org/gmane.linux.kernel.janitors/34058
but apparently slipped through cracks :-( therefore:
Acked-by: Pawel Moll <pawel.moll@xxxxxxx>
Thanks for bringing it up again!
Pawel
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/