Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1453082ybz; Sat, 25 Apr 2020 19:55:50 -0700 (PDT) X-Google-Smtp-Source: APiQypIQNzXGyHuAvmvr1k/Orrkjai909a1V88YxWZgxfwWQtEWq3N4nQbAWBEI/8Z+AN9ujnlls X-Received: by 2002:a17:906:2296:: with SMTP id p22mr13651780eja.269.1587869750006; Sat, 25 Apr 2020 19:55:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587869749; cv=none; d=google.com; s=arc-20160816; b=yPL0ZLBWL2mooD2T0J3SPqnW8OvOF3BD9gLQPbVgfV+Cq03/W6vHUdeML7IfMC+QuB kRT3vDD0pGZ1a9ksSiec/lTNiHYdMRFs0omYovP4VKr07UYp+w0Qk7bNW94+u8oU3ukE rRerEOyEhSl/L3C+n1cdybCqQiyTD7tPt6sPEjLyyfs/TyS9k3meLe9mFd2bKR3jmHG5 Hjpx+id3hnNgLq5lyK37mVbgT3zwitEk9FKF1q8T2vDj7TWn2v20+0GP98+7FEV3EH1n Lhe5jEVRlsxo06z/zfKDePeRlhxHHGfXRFmrx8AfiFJrvVhen1y/XF60Rovj+iSh5aKR OdFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=1LztWkTQksezm49t04IiCw9RhUvH955q26bjVcYL2+w=; b=v6IOlTBCR/6IQ8zoYxCkdboFqr2tPaQxY+UDO72leo4cY95AspZf9w5A00VaLL1ni0 HaKrIzw1ffMVV4GrAIEHm6d6tBHlL0yl5injbVqQX/pzkNoHqxJZzXFJ7MJD9WdftiSo lYTgEsNAix/1wjE+X3SyzaUhjvSSeBG2YQpACxA0nazWgpa+Td+5hl+U+dPZ5J6xH78s e6yRMLRMErNArkrJ0+zf9pPGr7S0fO8TE8J4QTDrzFIuvRfOM4IWkwwIL3MnJK3FoLnz wddzCGCVHvewewJYt0PffCg0VgNb+d63Gkr0Y36/3H5gPtYn1nEkcLd/wYcX125Gb8J8 fXug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bWN6zg77; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp4si6253140ejc.399.2020.04.25.19.55.25; Sat, 25 Apr 2020 19:55:49 -0700 (PDT) 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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=bWN6zg77; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726140AbgDZCxH (ORCPT + 99 others); Sat, 25 Apr 2020 22:53:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42440 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1725952AbgDZCxG (ORCPT ); Sat, 25 Apr 2020 22:53:06 -0400 Received: from mail-pj1-x1043.google.com (mail-pj1-x1043.google.com [IPv6:2607:f8b0:4864:20::1043]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 75326C061A0C; Sat, 25 Apr 2020 19:53:06 -0700 (PDT) Received: by mail-pj1-x1043.google.com with SMTP id a31so3895543pje.1; Sat, 25 Apr 2020 19:53:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=1LztWkTQksezm49t04IiCw9RhUvH955q26bjVcYL2+w=; b=bWN6zg77Lmi27H32TLeWao3GKLDwrMUDIOKQUuFD68yxeyXDXzM/NhPgMIvl7Uj9y3 9le3mMk/2ELc0Fp1WOBMNWfHowpx4PKeHLxH+2Y2EIE7gNn1CiUxoHnBT8zUAW6Taxv6 NwkPgt8m6R4P7mNQo1146Dn16BFUrvjXMXFe/B3tbhpeLKlHXHBkxDfuiGRQYTpSzLYj 0dn473lYNJPuzo7O39LCxzD7NdCzT8gV2nOsLJWCMvvZehOdaz6ezsZpxV+ccp6xeIt/ qyxm4oNIvYtp4q6p4HS/sATt8mI3TDOAfstLGN4KCpJOVUx1pd/v7ZvcNgYSGqJoUUda ZhMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=1LztWkTQksezm49t04IiCw9RhUvH955q26bjVcYL2+w=; b=dUhZt+exeQbK635sf3QGliyaz3SX+NzcnmgFKHCP8Fg4x9WFVc+Yn3QKMTjGbt+Ke+ QH6vi5zHyW/wWtuQJC8f3zbJuah1ogbOSDogH/Qpdy92chvKtdH5Luj5BrCbUUMyBCVN ANGTEX1CVBoZlMOjmn4l6i0QXccX4igEAg1PejJLsRHeyP3XvlHBw+LdyqcKkSU6ShQg MShLj4jd9N02jZRgPiCkCcVhmGk0LaT3OrZ9/ngMZD0Ye6F6bNNpr6zNB0ZWXcWbjYrL Szq6Lol3qfD4HYzx/0mPrnNl27Zynk0b6Fn8vWGAV67wyMg69n3FKkBq3iqyY40MkoKU J6/w== X-Gm-Message-State: AGi0PuYLgkqoR6nsd39G1Gp0EQ58z5mWjCuh4HoGpXShMpZ6Vp+2n+ol V2nfkMz1tPAfg8xT3jPS+ns= X-Received: by 2002:a17:902:dc84:: with SMTP id n4mr314861pld.281.1587869586024; Sat, 25 Apr 2020 19:53:06 -0700 (PDT) Received: from localhost ([176.122.158.64]) by smtp.gmail.com with ESMTPSA id p1sm1609850pjf.15.2020.04.25.19.53.04 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 25 Apr 2020 19:53:05 -0700 (PDT) Date: Sun, 26 Apr 2020 10:53:00 +0800 From: Dejin Zheng To: Markus Elfring Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Andy Shevchenko , "David S. Miller" , Nicolas Ferre , Palmer Dabbelt , Paul Walmsley , Yash Shah Subject: Re: [PATCH] net: macb: fix an issue about leak related to system resources Message-ID: <20200426025300.GA18964@nuc8i5> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Apr 25, 2020 at 07:00:35PM +0200, Markus Elfring wrote: > > A call of the function macb_init() can fail in the function > > fu540_c000_init. The related system resources were not released > > then. use devm_ioremap() to replace ioremap() for fix it. > > How do you think about a wording variant like the following? > Markus, I think my commit comments is a sufficiently clear description for this patch. Someone has told me not to send commit comments again and again when it is enough clear. Because it only wastes the precious time of the maintainer and very very little help for patch improvement. BTW, In the past week, you asked me to change the commit comments in my 6 patches like this one. Let me return to the essence of patch, point out that the code problems and better solutions will be more popular. > Subject: > [PATCH v2] net: macb: Use devm_ioremap() in fu540_c000_init() > > Change description: > A call of the macb_init() function can fail here. > The corresponding system resources were not released then. > Thus replace a call of the ioremap() function by devm_ioremap(). > > > Regards, > Markus