Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp264534lqp; Tue, 11 Jun 2024 04:03:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVW9VdXlfNC7pSfpMYhmhDDEvLqCeBhoFViUhowKH+0XZ8otqk1jvD2wcOHygChIRRi+QisE7EewbEBs7xjxIsJqFnEr6OleNH/CkIG2A== X-Google-Smtp-Source: AGHT+IFdu8Op+2WSiSEcAU1xrrSbQvDj1Hbskypz3vBbnbI5JM6gHAFLG0q8Sn8aNVZ1/z6H1Pcq X-Received: by 2002:a05:6358:7188:b0:19e:e349:1cfd with SMTP id e5c5f4694b2df-19f1ff9885emr912833555d.26.1718103836113; Tue, 11 Jun 2024 04:03:56 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718103836; cv=pass; d=google.com; s=arc-20160816; b=jgetM25uGG8hmbUFIe+dp54/3RWk0GzglgGRt/Sab6UwuVX5ncWngoGJ8j4powrmVo IziSuRWs5csCyjBkAJcyJlsnXpwzW4nLuZPzFYLSq8m2NlacjbfaBx/hMMbA3BjTVHF9 +Cc8p5nhzHT6zj+LagEJIQhmYnRH+4dnEX16r4u5bA04iWG5rhGV7Wq0zTk6KO25qyPX TxpsF9kryX2wtrp7ruQ9eVXsCR/ej/0mWkP9GnlUkQwRjC29woEm+cu8ZA61KdnHIVi4 3rgFZvhwygY+CpKJeLKtEOhtRHa2EZEcteJ3+0G1hAztGXQ54RYTkCCRUvYVJjVuEPVc s6Xw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=fNHUS6lqXiMpb1TUf0buiIY4J8U6FlHbIrEU9fCw1Yw=; fh=DqqlflHRyoxW1FvWFtz7GHYBmTrZqS7eL5vbr24uN/E=; b=ASWTXJDLQl63d3OwfXejYK4u7yAYmAlxGq6JBpUrgPyU9aM7Mu+b6/PhwDzDxzSA0T KpikEYQDeteMThAMh87Kh5J9Q72LolJxsF+T2NeWvqFMaKDJp3/Sjkp96uLhoTmoxme5 Rug7jiWqYVgq5yxt3uKDyZjmH6as0XZGd6Dz9w2ra8vWFUnYwQ8mRe8935hVsLwCphWl jXG//aLqHI8ZTdZAALuBUksWqZNUayHjp/GYEHDcsRRUKmb0ffFgoXWWEDAJcAuRh241 x1YX+OqwDPm8obJAx6ToOCnB4vjAPbVUoxiI2xMB2cOxFvQb65UTXBHQmIlEq1w009ma stdQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-209685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209685-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de294fa76asi5456571a12.705.2024.06.11.04.03.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 04:03:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=alpha.franken.de); spf=pass (google.com: domain of linux-kernel+bounces-209685-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209685-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 65C20289A01 for ; Tue, 11 Jun 2024 10:55:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E3F87179675; Tue, 11 Jun 2024 10:55:46 +0000 (UTC) Received: from elvis.franken.de (elvis.franken.de [193.175.24.41]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E71AA54750; Tue, 11 Jun 2024 10:55:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.175.24.41 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718103346; cv=none; b=EElGbodMI4rWYrfUTaWC8s+KLs+qMM1S0G7VWjmtHzT3dArrvCzWN6KsLsAHVW6CeIAhUn3W1aqECzXXCh2Rv8tYLFl3JOk1AmAuK5/9GKqEWVP24absKEtNQ4lN9zrp6/xn9A7uM9PS/4XqnCgKnvOZiWjpSVrxzrtwNsDjvfo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718103346; c=relaxed/simple; bh=7PiVZWBQ7T3V+IYy6XeibQQwd31KDTQIRC1F4q0R7QA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=FPD/0B0iPZU6HtKzkGuVxNl6c/3mh6K+pqeeHpR0CXwLx+SwIiiKxz0LJpEpOVkcLAcM4mvQ1Lg4Ng7ClOBW1njtcF9Ob38W9vh4Dmc01qXoChI5V8Un7u351bfEizYP/sEaS67bbg7HJFPyI5IIERxk5CGeDgtblIev3KIoyAs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de; spf=pass smtp.mailfrom=alpha.franken.de; arc=none smtp.client-ip=193.175.24.41 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=alpha.franken.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alpha.franken.de Received: from uucp by elvis.franken.de with local-rmail (Exim 3.36 #1) id 1sGzAC-0001OE-00; Tue, 11 Jun 2024 12:55:40 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 9E694C0120; Tue, 11 Jun 2024 10:54:33 +0200 (CEST) Date: Tue, 11 Jun 2024 10:54:33 +0200 From: Thomas Bogendoerfer To: Andy Shevchenko Cc: linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 1/1] MIPS: Alchemy: Switch to use kmemdup_array() Message-ID: References: <20240606165145.3032150-1-andriy.shevchenko@linux.intel.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240606165145.3032150-1-andriy.shevchenko@linux.intel.com> On Thu, Jun 06, 2024 at 07:51:45PM +0300, Andy Shevchenko wrote: > Let the kememdup_array() take care about multiplication and possible > overflows. > > Signed-off-by: Andy Shevchenko > --- > arch/mips/alchemy/common/platform.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) applied to mips-next. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]