Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp1093901rdg; Fri, 11 Aug 2023 09:28:18 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGKkB/pT6CmEcHNXBEqyro0JmhDyFxRVa36pW5/4GTAy8dna1uYL2Q+IWjiI8xgsbRSfIro X-Received: by 2002:a17:903:2349:b0:1bc:5e36:9ab4 with SMTP id c9-20020a170903234900b001bc5e369ab4mr3437730plh.21.1691771298400; Fri, 11 Aug 2023 09:28:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691771298; cv=none; d=google.com; s=arc-20160816; b=0AaxjPxTSzMlX5yyifcdCzFDaN109d2fsLx1AfZH6mNZCkK+Js8CW/7G+PjIur4WEV PCB5NR6nfbi6Zpcmiqlxn5C6tq4Z9GdFLsYTw5rRbex3jVgdoonv7tY6s+Zv1W21hToL CE5uWO+VsJooDjc1uq41AwKlYtMY+2ybyTJBLWf8ZS0CkRE3vZraHl3sTYWKrMZ/ADxE /sj7VsallDDShCWjBCzID4fy7WhWNLGq6I7eI/SCI6orMlp+YgXaKdcainnhAeWKo7Ms 87kMcCRTKlWMxS59VyY5vk7YUKREoTSD7l1dNmlp5xDH8TQqNSAY1+cYwC4Mib1BbTfO yFzw== 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:dkim-signature; bh=9bz0P3SxJy8zR8yKS2yBLUzB8Q7bU7/HvALUPM7DR1c=; fh=0ra4KGjDPrJw7VSDpbqMAJeyGxZyNCU669tzkwp6PRE=; b=mxqieKei29Ww0K04A3BFUYeRjXRBRJ5D/1W2ipVZz6VgVnS4QZvnmUomvjxaD9muAn LGzXpHpx/U+qI5DAq1ByRVeKS1BZaolnqcIrTZ8AGWBJlk5KJFEGebot1fyRw6gaQVsU ELVu+u5UdM2/vD6nOa5q3B9Zdf16lNWdlV5ciFhVEO/W0ILm07vSk8KgVYIAM2tgyWv4 RY3u5pOiEUXRezteLzlMSIVw6ChGk3C4hsB9rNiMqwOSYrY0DMAiqHvEJLk3diI2dI7j MCIUxSZVQhDVAtB6vyEXpl85EpPcWVmCHi4uGAq7yO5lkAWCHd5HSZdsT4gqtvHSotKy LJgQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="h/MA780K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id m3-20020a170902d18300b001b3ac2cdacasi3481571plb.553.2023.08.11.09.28.05; Fri, 11 Aug 2023 09:28:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@bootlin.com header.s=gm1 header.b="h/MA780K"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=bootlin.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234100AbjHKP2g (ORCPT + 99 others); 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 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_PASS,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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