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 X-Spam-Level: X-Spam-Status: No, score=-8.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9D7CDC43381 for ; Thu, 18 Mar 2021 14:01:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6F18764F6B for ; Thu, 18 Mar 2021 14:01:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230518AbhCROAt (ORCPT ); Thu, 18 Mar 2021 10:00:49 -0400 Received: from youngberry.canonical.com ([91.189.89.112]:39049 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229960AbhCROAd (ORCPT ); Thu, 18 Mar 2021 10:00:33 -0400 Received: from ip5f5af0a0.dynamic.kabel-deutschland.de ([95.90.240.160] helo=wittgenstein) by youngberry.canonical.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.86_2) (envelope-from ) id 1lMtCQ-0004ds-V0; Thu, 18 Mar 2021 14:00:31 +0000 Date: Thu, 18 Mar 2021 15:00:29 +0100 From: Christian Brauner To: Colin King Cc: Andrew Morton , Greg Kroah-Hartman , linux-fsdevel@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] proc: fix incorrect pde_is_permanent check Message-ID: <20210318140029.munk3tf2iiipxw6y@wittgenstein> References: <20210318122633.14222-1-colin.king@canonical.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210318122633.14222-1-colin.king@canonical.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Mar 18, 2021 at 12:26:33PM +0000, Colin King wrote: > From: Colin Ian King > > Currently the pde_is_permanent check is being run on root multiple times > rather than on the next proc directory entry. This looks like a copy-paste > error. Fix this by replacing root with next. > > Addresses-Coverity: ("Copy-paste error") > Fixes: d919b33dafb3 ("proc: faster open/read/close with "permanent" files") > Signed-off-by: Colin Ian King > --- Thanks! Seems very much like it. Acked-by: Christian Brauner