From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757362AbbIUT4T (ORCPT ); Mon, 21 Sep 2015 15:56:19 -0400 Received: from foss.arm.com ([217.140.101.70]:55014 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757253AbbIUT4S (ORCPT ); Mon, 21 Sep 2015 15:56:18 -0400 Message-ID: <1442865369.13365.1.camel@foss.arm.com> Subject: Re: [PATCH 02/38] bus: arm-ccn: fix handling cpumask_any_but return value From: Pawel Moll To: Andrzej Hajda Cc: linux-kernel@vger.kernel.org, Bartlomiej Zolnierkiewicz , Marek Szyprowski , Arnd Bergmann , Olof Johansson Date: Mon, 21 Sep 2015 12:56:09 -0700 In-Reply-To: <1442842450-29769-3-git-send-email-a.hajda@samsung.com> References: <1442842450-29769-1-git-send-email-a.hajda@samsung.com> <1442842450-29769-3-git-send-email-a.hajda@samsung.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.12.10-0ubuntu1~14.10.1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 Thanks for bringing it up again! Pawel