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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 947AFEB64DD for ; Fri, 11 Aug 2023 15:28:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236247AbjHKP2g (ORCPT ); Fri, 11 Aug 2023 11:28:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41010 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234033AbjHKP2c (ORCPT ); Fri, 11 Aug 2023 11:28:32 -0400 Received: from relay7-d.mail.gandi.net (relay7-d.mail.gandi.net [IPv6:2001:4b98:dc4:8::227]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 72A2F103 for ; Fri, 11 Aug 2023 08:28:30 -0700 (PDT) Received: by mail.gandi.net (Postfix) with ESMTPSA id AAC5020005; Fri, 11 Aug 2023 15:28:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=gm1; t=1691767708; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=9bz0P3SxJy8zR8yKS2yBLUzB8Q7bU7/HvALUPM7DR1c=; b=h/MA780Kh3/AtKfr4gkmdN5JtETcnGRfq124gioitEZyTJRBbCKXOqepsinac4u5FVApnI pUVJKofm4QhDBHkmmzCk80yfwdndStgrecykRlrQF8jYusJAfwfKXLpUnmSdUQsCyeV7KV SSEIxNT+9Y3R96BaPjxhhPzFCvcowTzLNZDJvkriGz4elNs4ShkKiLtWUujQx10lkzEtaV XXfktPDyMkYoWW9y4Zmd3bJaXYAwePyayHO/0GetOO4a8Zfh8sEBuuXKMjY84JgxbK0FGP zFh2EjduIzKZLKMV8TmR3r8uCdxFhmkdJRBlLTI5zh7Kr6ErgeThBIXMMmmzDg== Date: Fri, 11 Aug 2023 17:28:26 +0200 From: Luca Ceresoli To: Ruan Jinjie Cc: , , , , , , Subject: Re: [PATCH -next] misc: eeprom/idt_89hpesx: Switch to memdup_user_nul() helper Message-ID: <20230811172826.203aa618@booty> In-Reply-To: <20230810121608.2110328-1-ruanjinjie@huawei.com> References: <20230810121608.2110328-1-ruanjinjie@huawei.com> Organization: Bootlin X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-GND-Sasl: luca.ceresoli@bootlin.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 10 Aug 2023 20:16:08 +0800 Ruan Jinjie wrote: > Use memdup_user_nul() helper instead of open-coding to simplify the code. > > Signed-off-by: Ruan Jinjie Reviewed-by: Luca Ceresoli -- Luca Ceresoli, Bootlin Embedded Linux and Kernel engineering https://bootlin.com