Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3089256pxb; Mon, 24 Jan 2022 02:05:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxYA7D2w119cUfOji/KwBIlejBO769uYsgJu/LiJP4ySj/FIgfDHdzifmCpVe8GpvOttXf4 X-Received: by 2002:a17:90b:4d86:: with SMTP id oj6mr1164294pjb.232.1643018751245; Mon, 24 Jan 2022 02:05:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643018751; cv=none; d=google.com; s=arc-20160816; b=IJTLufZMlDGvnB22El/O5Gbw8rh3IfPNJE8z/8JeYk4QLslb1SMSetokGTyOfbyukg HnPuq16bNy+zCmW6O0x6m2sBCeJSdq7FrFkIr/Fxf/iDPfc5mnWYRk39RgsygLgTUFOc Ucymbb1YwM/b67DYJkpNOCpksbzrPtPlqTjolK5MPvIZrxz9hXCqFK7pzizYqsxKdUbB yU73xm48R4ePZKjyxbWXlHcNJMLNrEIeXqdCppv/EpCRyj1aOoFVLRKfy+mv7YEHMtvs 1xAWCuR7/GQmCSGnig87wQbjBHQorupbyueMVI+Hr1oRHYxMb+tlClQWm8sctMgwNEbN 6H2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=nrBaa5iHxAw9OrcgMxz0t6kMxa4QMST4YQIXWltdGz4=; b=0b1zkKUzKjrOpKzc9RrymGvfr1DDecH36B4N3PKL+7cIrwGUNkq4Fnhgc4mjzJYAjM orHljma8c1JWHSH2Bnk+SzN3JPyGptTaAE1n4Mc69jRlzEacAmrcNppXH5USElkEInEl XIAuX2GqAsDo7pgSEMzzbrQ235S75Nv4PZxCZ/Dwb0DjGNEoQTOhzEY+yLqx/rYsGUdf irJdlA41eBK9+/2R6LAMkqDjIWTmelFOO+1VRHEeS4QO+40KlZSgvcf29JlfSfCf//Vi FYpcbpGSg8nirYHpE3z6QZQDAoBKGlBSGkYSysZ/xFUKNK3bDZ35Ps/ueFZ1pQznoE/6 IdKg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bf9si7566738pgb.532.2022.01.24.02.05.39; Mon, 24 Jan 2022 02:05:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237981AbiAWPnv convert rfc822-to-8bit (ORCPT + 99 others); Sun, 23 Jan 2022 10:43:51 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:57577 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235306AbiAWPnu (ORCPT ); Sun, 23 Jan 2022 10:43:50 -0500 Received: (Authenticated sender: miquel.raynal@bootlin.com) by mail.gandi.net (Postfix) with ESMTPSA id 9E36C100002; Sun, 23 Jan 2022 15:43:45 +0000 (UTC) Date: Sun, 23 Jan 2022 16:43:44 +0100 From: Miquel Raynal To: s921975628@gmail.com Cc: richard@nod.at, vigneshr@ti.com, linux-mtd@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3] mtd: rawnand: nandsim: Replace overflow check with kzalloc to single kcalloc Message-ID: <20220123164344.015f1447@xps13> In-Reply-To: <20211225100607.118932-1-s921975628@gmail.com> References: <20211225100607.118932-1-s921975628@gmail.com> Organization: Bootlin X-Mailer: Claws Mail 3.17.7 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, s921975628@gmail.com wrote on Sat, 25 Dec 2021 18:06:07 +0800: > From: RinHizakura > > Instead of self-checking overflow and allocating an array of specific size > by counting the total required space handy, we already have existed kernel > API which responses for all these works. > > Signed-off-by: RinHizakura Series applied to nand/next. Thanks, Miquèl