Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp970160imi; Fri, 22 Jul 2022 13:53:36 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uTNYnfGIKkI0c0TGnilV868k2ZVwXrcrYlvrKUk9LWhcnWiCyYopsXA7u4vLsvPJNriojk X-Received: by 2002:a17:90a:678a:b0:1f2:1caa:6416 with SMTP id o10-20020a17090a678a00b001f21caa6416mr1513407pjj.115.1658523215378; Fri, 22 Jul 2022 13:53:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658523215; cv=none; d=google.com; s=arc-20160816; b=KQB0YDu5WbCv6t/vJfiFpmmEXK1sR32nFs8gIpc5G/VH755nKwYhn+UeW9qDbCqk/k RjNUVkVRYJxffECP2V1IsWwdYGeDcMLQNbIfyYld18lTJJ/oq3ytPKBOHECWpZHEg8mL b9zyBqb7Lu9buPHrL9TFhWxlJ70p8ZHS4xcBh0wXgZ1ow+2fUx6bPdyqr6o5Q0DoMW3p XGCyLaHJJ3hziWcxQyVP2XqhMi46K3T+tNy9/yrt+2NKkNeGroas7qiFgEjbbNcZy8Ny l/prBDVy9n0ofH02DxAZxbXHRaHVHctDF3tD12ImOJsGl82IlnO9gp3uA9ctcBwLG6Qz DgEg== 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 :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id:dkim-signature:dkim-signature; bh=aOtkLEYDcvmiJryPOD80mgw3o460uTl/4P5RUS7lgQA=; b=GzWyHsOg4EAjXtDzDluAhU4Gg82jafCF9r2C6XdZ7ulVKfPc0ZjsH+H9lgiyAf6HTB by/q84luasevp9Dh+g/f3v/3ejvfHb7JSnMgCN0BSILpW0zSyk8WAd8zWzcpHHRn8MHZ m6MOJvccDm9MRaG8quRAmUM+K5lSJAN/cPRcwKMskDSEP9o08H5qX9NHGVUtuEW/s+6N stEAxFpyxCymbY4cgPHXjrwAe4dv7yf08GAoCFq4KQWWVowy7uu+yCACp0knjubvGAfk 7DA5s0/mNqvD2GvOEneD3d7BgAwaoZEaqYmXzrQDEoN55BG5OqGqb1XOal+wkYa1Z5Ne iJ7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=CFEnlPpi; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=CFEnlPpi; 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=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a19-20020a170902ee9300b0016d4f20cc8esi80450pld.336.2022.07.22.13.53.13; Fri, 22 Jul 2022 13:53:35 -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=@hansenpartnership.com header.s=20151216 header.b=CFEnlPpi; dkim=pass header.i=@hansenpartnership.com header.s=20151216 header.b=CFEnlPpi; 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=NONE sp=NONE dis=NONE) header.from=hansenpartnership.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236671AbiGVUMp (ORCPT + 99 others); Fri, 22 Jul 2022 16:12:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41164 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236592AbiGVUMl (ORCPT ); Fri, 22 Jul 2022 16:12:41 -0400 Received: from bedivere.hansenpartnership.com (bedivere.hansenpartnership.com [IPv6:2607:fcd0:100:8a00::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 57512A9B9B; Fri, 22 Jul 2022 13:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1658520757; bh=1lu/oIs0WiJHNhHfcks6ORWsi614Qbc/WNzkGCwoC/0=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=CFEnlPpiSi8Kz2mJNF9KdmEO99RJSp3MaCyxk0rkXbpgq2Xd7Dd5x/sMzlxm4LHqJ 8gDl+l6PGdKyo2o3Hc3lFoDGNtmm6GOdzXOZ3bEvek3V7a2hXnbmDZinLWPiD1cx3q S4NIk2sTZ2bVR/L1ODLl2FZWIKqhLsjZJCppDBSk= Received: from localhost (localhost [127.0.0.1]) by bedivere.hansenpartnership.com (Postfix) with ESMTP id 849581287A12; Fri, 22 Jul 2022 16:12:37 -0400 (EDT) Received: from bedivere.hansenpartnership.com ([127.0.0.1]) by localhost (bedivere.hansenpartnership.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VHxCfJzEDPyx; Fri, 22 Jul 2022 16:12:37 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=hansenpartnership.com; s=20151216; t=1658520757; bh=1lu/oIs0WiJHNhHfcks6ORWsi614Qbc/WNzkGCwoC/0=; h=Message-ID:Subject:From:To:Date:In-Reply-To:References:From; b=CFEnlPpiSi8Kz2mJNF9KdmEO99RJSp3MaCyxk0rkXbpgq2Xd7Dd5x/sMzlxm4LHqJ 8gDl+l6PGdKyo2o3Hc3lFoDGNtmm6GOdzXOZ3bEvek3V7a2hXnbmDZinLWPiD1cx3q S4NIk2sTZ2bVR/L1ODLl2FZWIKqhLsjZJCppDBSk= Received: from [IPv6:2601:5c4:4300:c551:a71:90ff:fec2:f05b] (unknown [IPv6:2601:5c4:4300:c551:a71:90ff:fec2:f05b]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by bedivere.hansenpartnership.com (Postfix) with ESMTPSA id 06CBA1287A10; Fri, 22 Jul 2022 16:12:36 -0400 (EDT) Message-ID: <7e1182f7c01af15d47d7ee836a72bbd5e9b47d64.camel@HansenPartnership.com> Subject: Re: [PATCH] hfsplus: Fix code typo From: James Bottomley To: Xin Gao , linux-fsdevel@vger.kernel.org Cc: linux-kernel@vger.kernel.org Date: Fri, 22 Jul 2022 16:12:34 -0400 In-Reply-To: <20220722195133.18730-1-gaoxin@cdjrlc.com> References: <20220722195133.18730-1-gaoxin@cdjrlc.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.34.4 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS 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 Sat, 2022-07-23 at 03:51 +0800, Xin Gao wrote: > The double `free' is duplicated in line 498, remove one. > > Signed-off-by: Xin Gao > --- > fs/hfsplus/btree.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/fs/hfsplus/btree.c b/fs/hfsplus/btree.c > index 66774f4cb4fd..655cf60eabbf 100644 > --- a/fs/hfsplus/btree.c > +++ b/fs/hfsplus/btree.c > @@ -495,7 +495,7 @@ void hfs_bmap_free(struct hfs_bnode *node) > m = 1 << (~nidx & 7); > byte = data[off]; > if (!(byte & m)) { > - pr_crit("trying to free free bnode " > + pr_crit("trying to free bnode " What makes you think this message needs correcting? The code seems to be checking whether we're freeing an already free bnode, meaning the message looks correct as is and the proposed change makes it incorrect. James