Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp1036429pxb; Sat, 17 Apr 2021 04:51:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwSN5lvfBUO6VwHt6SYD/UJfADBG+Ne0zOOBMza2AWIkO2ZYBAji57cLVOwmRPhfrldME1w X-Received: by 2002:a17:902:b68c:b029:eb:6c82:60da with SMTP id c12-20020a170902b68cb02900eb6c8260damr14231699pls.25.1618660285122; Sat, 17 Apr 2021 04:51:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618660285; cv=none; d=google.com; s=arc-20160816; b=lGZACdz/0bpkssZnh/LE/XUD90oJQ4YV2ojWFidSNrzlEhVut6tfCoVGiI0LULRbN5 jchZ2xbgAHpqmBCTKcM0n0LbmQ8PsTWLzqwgIVErl2bJs8R3Meko00Vxh5LeqQO9aPMo iM7dQoTw34neWcd9L2uFRadmTiz80xgDqCWYi9S21mxhbc+BsxGWirySWpHj2zephYkp 3klqUyDPlzhbqwfcfPgKgvnYxVY62mDQ0BK4KPL8+0UYU0N09My2YtP11K7AncH9WEme HiT+rb8Pb/TWcayjYVV2AiLTg7bqN4CCw0NZ7iQy7KpSi04+dFZCFul2criDV9JHYxMC zBpg== 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 :dkim-signature; bh=hWQTtezj5e7iWCHlJMc/HElbpfX2XhqmE3A4fxS1/zs=; b=YKrO1kel7gDHJH5YaWLNSUDF1mXT937CZG2zWpXQ/O6pIF5pIxhO1LM2prnAFtzMPG 1VSwNvXFHyYyi2nR4vW2qC/C6zQZZzT6vFi4aFrMlGLLfK9roIDEEHbFv2I00wHaak+U 8e//ToxYqcBJ04bRZchF6DhFqh5085sZyUvs/j+v8GguX0RYo7aARYNz3QXFxkoOzDan R0rUHZ4HCMOZYbptFj7KC2M26Hjl/TWfHyhenioU4F+IWd1exdFDDX/dvuU+totO1aT2 7IqBQCoqTCPsGH5J8E35Hzq2PRKtyuXBOOo2zo/f02vPtky2bnawXBgUTmkhWUUEuQ8w pMDQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TOJN98Y5; 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 e5si9489242pfc.160.2021.04.17.04.51.12; Sat, 17 Apr 2021 04:51:25 -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=TOJN98Y5; 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 S236188AbhDQLvC (ORCPT + 99 others); Sat, 17 Apr 2021 07:51:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235901AbhDQLvB (ORCPT ); Sat, 17 Apr 2021 07:51:01 -0400 Received: from mail-wr1-x42d.google.com (mail-wr1-x42d.google.com [IPv6:2a00:1450:4864:20::42d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6C44FC061574; Sat, 17 Apr 2021 04:50:33 -0700 (PDT) Received: by mail-wr1-x42d.google.com with SMTP id r7so17144565wrm.1; Sat, 17 Apr 2021 04:50:33 -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=hWQTtezj5e7iWCHlJMc/HElbpfX2XhqmE3A4fxS1/zs=; b=TOJN98Y5AJgvwqWBXb3oN1sktUtOgOjayiLIailIKN8OfZ01K1WDZ5IGsZHu3ewnbD Kv0usVyqiCN/c+rwornOm/CUkJ9/W7k6XKYKD+8PabWrZn1Pjr/VePU1tzD+aTXe9HHJ OSqyA55TTs44hD2HqL4h9bCpe/I0Aki80XxisRJWtBOSys/UDGa8vA+DVtn9Xv1reIrg dEIBVuPoo/ZV0nLbIgb57QuOtfeR6x0SEheM8944eYb+ipKKwlPDTUxLh4EQV09KFGu7 GKdaXUHjmLtoFgSLHX83A9mcRO0oH/V7odhveorl38U9L5JqGfZXNucM0SGFhKpUKk0+ mnTg== 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=hWQTtezj5e7iWCHlJMc/HElbpfX2XhqmE3A4fxS1/zs=; b=a/OtErxW+ICY7KYnHmYrmttsNs771kf/GHHTciOAdgc/nNpw2ATXYb8JSgUv+Y9A4l kDiZW/xc/Z1PXuFAviFoZoK2Bofk2j7vOKz3f4sp1o+q5UQSKAkjArw68qykom1Q8qAt bD2Ovz8r4YVU/8xK8+gERg9AglF4vkxKjBT9jeuDBkqQlApKopoIb76OjncKqkDlT/9O 4aeZZOTQYzTW5V3Sd6aD1BiGRn7Z3zy4irHKd2U+e8twewPZv7v/mXHGLiKuw9HUXRnJ ayUxkRfjLHok96GCnE00JVostGQZrTPJeZpi5SbrLzhmUfUulRjgvpbMwGhzggXCwE22 fRaQ== X-Gm-Message-State: AOAM530emJVYk6zf8IK1tKl0uQNcvkJ8sUBOD4N8IrD63OjDQeWtjzio moEKYwIK8ifpDD81VV3OcfQ= X-Received: by 2002:a5d:65d2:: with SMTP id e18mr4059418wrw.31.1618660232167; Sat, 17 Apr 2021 04:50:32 -0700 (PDT) Received: from ard0534 ([41.62.188.221]) by smtp.gmail.com with ESMTPSA id u4sm13790693wml.0.2021.04.17.04.50.31 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 17 Apr 2021 04:50:31 -0700 (PDT) Date: Sat, 17 Apr 2021 12:50:28 +0100 From: Khaled Romdhani To: David Sterba , clm@fb.com, josef@toxicpanda.com Cc: linux-btrfs@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, khaledromdhani216@gmail.com Subject: Re: [PATCH-next] fs/btrfs: Fix uninitialized variable Message-ID: <20210417115028.GA21778@ard0534> References: <20210413130604.11487-1-khaledromdhani216@gmail.com> <20210416173203.GE7604@twin.jikos.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210416173203.GE7604@twin.jikos.cz> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 16, 2021 at 07:32:03PM +0200, David Sterba wrote: > On Tue, Apr 13, 2021 at 02:06:04PM +0100, Khaled ROMDHANI wrote: > > The variable zone is not initialized. It > > may causes a failed assertion. > > Failed assertion means the 2nd one checking that the result still fits > to 32bit type. That would mean that none of the cases were hit, but all > callers pass valid values. > > It would be better to add a default: case to catch that explicitly, > though hitting that is considered 'will not happen'. Yes. I will send a V2.