From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7C781C433FE for ; Fri, 18 Nov 2022 08:16:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=rxSlDLJ+CTI5bhSXuWa0PsQuC+LpP6ee+3gkyzCZJm0=; b=mraTfRiJjRBbIm NuFouHy130xgqusQGhiX0l0S++xZrypUp3yhjx0Svb8EvoDRFIQ2HcswZ5USGNM6vVYygcwWDeI1K w2OTrUX5CzEvN4uflvgV9Ayn2EBpunEHt95LSDg6oFFA3v5bGxTSb/Ypw60iJYQzGjI7RnfNcgWi/ wh5bO0oYSlTUG/MQLNy6886pDkuJZebsvnfp9Hh+gp4tHZ67//hkFPpzAPOZVl66sNQn1CJl1GCz7 0RiNOzKqrO0h6qHhfyKBxm5WtX3tEXnYXz6o5s12bLjXZ7Hnjs5fPAHdMOEYAE/xrckt47jEWEZ8A lN3zFaXVO8b55JX1CV6A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovwX6-002imi-9Y; Fri, 18 Nov 2022 08:15:32 +0000 Received: from muru.com ([72.249.23.125]) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ovwX2-002ijx-64 for linux-arm-kernel@lists.infradead.org; Fri, 18 Nov 2022 08:15:30 +0000 Received: from localhost (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTPS id A89C0807E; Fri, 18 Nov 2022 08:05:17 +0000 (UTC) Date: Fri, 18 Nov 2022 10:15:21 +0200 From: Tony Lindgren To: Maxim Korotkov Cc: Haojian Zhuang , Linus Walleij , "Manjunathappa, Prakash" , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, lvc-project@linuxtesting.org Subject: Re: [PATCH] pinctrl: single: Fix potential division by zero Message-ID: References: <20221117123034.27383-1-korotkov.maxim.s@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20221117123034.27383-1-korotkov.maxim.s@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221118_001528_336170_C42BC6D2 X-CRM114-Status: UNSURE ( 8.39 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org * Maxim Korotkov [221117 12:22]: > There is a possibility of dividing by zero due to the pcs->bits_per_pin > if pcs->fmask() also has a value of zero and called fls > from asm-generic/bitops/builtin-fls.h or arch/x86/include/asm/bitops.h. > The function pcs_probe() has the branch that assigned to fmask 0 before > pcs_allocate_pin_table() was called Reviewed-by: Tony Lindgren _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel