Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp2698355rdb; Mon, 4 Dec 2023 05:18:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IHrddGmCmqjkoO5bo3xA0oVs19PK9oOh64x8ZX9cbex7C/lE5g3c5jqqXXjlKwUP9Vfraxv X-Received: by 2002:a05:6a20:7da6:b0:18f:97c:6148 with SMTP id v38-20020a056a207da600b0018f097c6148mr5393293pzj.69.1701695892421; Mon, 04 Dec 2023 05:18:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701695892; cv=none; d=google.com; s=arc-20160816; b=OIUHlWJV0iBBlWqJgpPnrbkg5MVtUEZqMSGnA43e9zTHHV2M8zSTxB09yPUbxxvbnI p+O1SuzDULDswD5aUnabHQ2dc177A383MLdyAuXAULuBFhG/RV1GijOSHTqfERfStqS1 hNfzPSO3T3mbvdycSMizEqDB1dW94lD8P9ZVoL4wy3OasX0o0ChgmoFN457xGePswm8f IeMAkkQTBV2jSwowaLy/K0RAV3JGHRh5R4fSB0sdEWC/y7o0TmQ2siMqM1kgq32r4aw2 oLby/ztQ51OnYDmZPCYjOGcGhnSh8Vjeca/e7pyq5iwPVZAEdnlLBm4pbrHeUd447Ph+ M4Nw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=KZCDxmgwMrMlVqwtZ8tAuwXcyKouHhc5Vfp8lDV/Pg4=; fh=MjXRddNY93K4pUvl+fafW/ADoK+d9KPgZYuFfZ5puN0=; b=bC/LiSBiELyILcy7WHgpdqezQlu9QtHcW5Mb/dDnDV8d05BRdOL2SmTw1gTMgabVUk FykZafl4eHWcEbAMKNpVJuxIuxbEMP602udQKCaizORgyZKDRXhri+VBtym5m/HC2JaS BUCdV1r6zOyUtCfYILzHdZEXp2MsyYj/eh2pRG4VWtFg2IOUnIIza5aoa0UYLUbfCF5d xZMexK0gVh+IaFiuVyAwI0YHWqv7WPFcJZ4xIRwwBSP4CEjTx6zFoDwWHCN63Lpnzb/5 QcSjIMuwQZVzto67r1d7Nmy3b8gaQJd/upo/q6qCRSwIXRUKZ9GDHrMUc4I6Nurheils dKiw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V3Cqwlbs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id u24-20020a631418000000b00577e00c5ffasi2013037pgl.867.2023.12.04.05.18.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 05:18:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=V3Cqwlbs; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7519C80AF242; Mon, 4 Dec 2023 05:18:09 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233696AbjLDNRz (ORCPT + 99 others); Mon, 4 Dec 2023 08:17:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43860 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229711AbjLDNRy (ORCPT ); Mon, 4 Dec 2023 08:17:54 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1A87DAC for ; Mon, 4 Dec 2023 05:18:01 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4CAE7C433C7; Mon, 4 Dec 2023 13:18:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1701695880; bh=ZqsFtctKz9KtHBVaOAU2TTpWyjElrfSFoJLOxIVMTBw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=V3CqwlbsqEox3O49weyGdcQgKaT/vva39nClwrr0CpCRY2g3pjXHrIasnDELtAzg+ sAb05PUuBlSLobzbT5w2mwA4s5YNFxoxQ29uJ5QK7wKqXw6ck98VVV94DcMJcBcp4m saMkFkQUWPsmS1A7nJ5Fb28oF86lN5vZ2FitGqKA= Date: Mon, 4 Dec 2023 22:17:58 +0900 From: Greg KH To: Dan Carpenter Cc: Su Hui , alexander.usyskin@intel.com, tomas.winkler@intel.com, arnd@arndb.de, nathan@kernel.org, ndesaulniers@google.com, trix@redhat.com, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, kernel-janitors@vger.kernel.org Subject: Re: [PATCH v3] misc: mei: client.c: fix problem of return '-EOVERFLOW' in mei_cl_write Message-ID: <2023120425-broaden-image-fdc9@gregkh> References: <20231128014507.418254-1-suhui@nfschina.com> <2023120452-stool-party-bf2b@gregkh> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Mon, 04 Dec 2023 05:18:09 -0800 (PST) On Mon, Dec 04, 2023 at 04:11:31PM +0300, Dan Carpenter wrote: > On Mon, Dec 04, 2023 at 09:00:42AM +0100, Greg KH wrote: > > > diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c > > > index 7ea80779a0e2..0489bec4fded 100644 > > > --- a/drivers/misc/mei/client.c > > > +++ b/drivers/misc/mei/client.c > > > @@ -2033,7 +2033,7 @@ ssize_t mei_cl_write(struct mei_cl *cl, struct mei_cl_cb *cb, unsigned long time > > > hbuf_slots = mei_hbuf_empty_slots(dev); > > > if (hbuf_slots < 0) { > > > rets = -EOVERFLOW; > > > - goto out; > > > + goto err; > > > > Please prove that this is correct, as based on the code logic, it seems > > very wrong. I can't take this unless the code is tested properly. > > Hi Greg, > > When Su Hui sent the v2 patch you sent an auto response about adding > stable to the CC list. > https://lore.kernel.org/all/2023112042-napped-snoring-b766@gregkh/ > > However, it appears that you still applied the v2 patch. It's in > linux-next as commit ee6236027218 ("misc: mei: client.c: fix problem of > return '-EOVERFLOW' in mei_cl_write"). > > When I use `git am` to apply this patch, then it doesn't apply. However, > when I use cat email.txt | patch -p1 then it tries to reverse the patch > and apply it to a different function. Odd, I missed that I had already applied the first one, nevermind, that one is correct, this one was wrong :) thanks, greg k-h