Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp625387pxb; Thu, 12 Nov 2020 12:04:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKrMIuIHOsTarI4FZNKTlYdaHjZ76WBwoihiUejHy/cSPKwSM7oi064qSM6MKnYp6Kiodu X-Received: by 2002:aa7:cdd3:: with SMTP id h19mr1659805edw.330.1605211445792; Thu, 12 Nov 2020 12:04:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605211445; cv=none; d=google.com; s=arc-20160816; b=BCepiUwYPSMVE4UKVr8L1bM3chQ3wePyq8HK8D3xo/ICPxNBjyF/NTaRef7cyIvqqd dXqQgX4yjwJqNJpgnug5GkHbYpMjMYpqyZsorG8ssgd/BFAzoAncs3flf48aJ1uNhh1r aRKyCvMUN0VYCWe5hjzBZiOQnUNULAUpOTEwJoTS0TUTllavfQKNbw1b//25k7im2uHT A4AvfEEz/7WQ+N1GtVYvzqCncdrBSR78NY9MPRxKtlvy6ZHkRni2T/8p1r6Q6g07KRHe x8hkAO2nEvZ3v8l3ZzIvpsCP8y3omm9tHaPs45T33EWy8aJoUPMWapvsBj6Ks1A9CWIn u7/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=xo6gBzkF98bJYSnSAKcJs0LFW3DcaRnU1jF19jrfeg0=; b=O/n5Wm5WUYFLAECZd6GOSJgpaBApOH4Bi1tgCWw57P7eTtnL8Tr/YMUUy/RudHTZUi Wo9KmJDnTyiqkT71S1Di3wEljILuv2Xs/K3brxewif+VNzOIOEG8S+lvOnaZ546e6Cve /Rlz+jPIoVi1AJWu2XVbzd6g/hBlwEg6Tu17735aecrvDeEmYsAWY7mopB116VXLPHUR 41BdNGPKa8AFRf4kSP9tgTb1P6OH4pbgKvp3Cp+CqaRXiy2lSAUQC4BnsiS+YhA9TJmx kUc2qWefQ2iLR7eit51a/H/Zoheh8iBSs0774tt0Fr9Kkyw1V9xhltN2FL4+J6TVks2C XgTA== 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 a10si4929947edq.316.2020.11.12.12.03.42; Thu, 12 Nov 2020 12:04:05 -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 S1727000AbgKLUBp (ORCPT + 99 others); Thu, 12 Nov 2020 15:01:45 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:60822 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726820AbgKLUBo (ORCPT ); Thu, 12 Nov 2020 15:01:44 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 87B071C0B88; Thu, 12 Nov 2020 21:01:41 +0100 (CET) Date: Thu, 12 Nov 2020 21:01:41 +0100 From: Pavel Machek To: Greg Kroah-Hartman Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Dan Carpenter , Santosh Shilimkar , Krzysztof Kozlowski , Sasha Levin Subject: Re: [PATCH 4.19 105/191] memory: emif: Remove bogus debugfs error handling Message-ID: <20201112200140.GA11931@amd> References: <20201103203232.656475008@linuxfoundation.org> <20201103203243.447026264@linuxfoundation.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ibTvN161/egqYuK8" Content-Disposition: inline In-Reply-To: <20201103203243.447026264@linuxfoundation.org> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --ibTvN161/egqYuK8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Dan Carpenter >=20 > [ Upstream commit fd22781648080cc400772b3c68aa6b059d2d5420 ] >=20 > Callers are generally not supposed to check the return values from > debugfs functions. Debugfs functions never return NULL so this error > handling will never trigger. (Historically debugfs functions used to > return a mix of NULL and error pointers but it was eventually deemed too > complicated for something which wasn't intended to be used in normal > situations). >=20 > Delete all the error handling. This is wrong for 4.19. Memory functions still return NULL here. Best regards, Pavel =09 --=20 http://www.livejournal.com/~pavelmachek --ibTvN161/egqYuK8 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl+tlKQACgkQMOfwapXb+vIpDACfYo1UXXvIT9J3cjFrdudnJvGR ZsQAn0eVMVM7ji2qEwfcLfw8nm2R+dnY =QpKI -----END PGP SIGNATURE----- --ibTvN161/egqYuK8--