Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1598948rwb; Fri, 13 Jan 2023 14:49:29 -0800 (PST) X-Google-Smtp-Source: AMrXdXvydwoOBEGCTNF1vzdOB6hx8frKhMBR6x1Y+HIiZW8uIcFF5S4gXqUWFeCfWC7b7zPYh29G X-Received: by 2002:a17:90a:af04:b0:226:d060:c7b8 with SMTP id v4-20020a17090aaf0400b00226d060c7b8mr31414311pjq.30.1673650169685; Fri, 13 Jan 2023 14:49:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673650169; cv=none; d=google.com; s=arc-20160816; b=bfxs20sOSnzESYzC63PEPOM+iwl8wG2bblUqYkm4Zz0YhhZQB++RXfhpKgqiOuCSNz i0BWKjAhUK9XbuC89hHaAoo039ibGrOhBitgmC1UA6nC7MWTZbgR7hZMYsqwJqugSo24 DYlwSxVtWfM2bK15jtHeYTnRH90fGFIIq0v9hBGmce2JvLHO+OghP53EgQ7XUEdbqrqr ZhYvHZ4fFkXKsbEGVECNRSVVpusqrStZlnhqveqG1cckmyhSyGZObGnhT04weVUVB5dG GtfPn6dDV8vgv3XSYKJFCQIUdKVsUuSxDUagybpoZsmXOte80GpSRdvW0z1xR8yoWcMU +obw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:in-reply-to:references:date:message-id :from:subject:content-transfer-encoding:mime-version:dkim-signature; bh=wkwNEJcW5cP6vG2TjwoalRy6nUUfWrz2FvmMjhaQOYI=; b=PguT1N7+1d5izVL6vuSFLOAiLnA+k1KF7xdHWKLQJ2Uy++zFdpuc7sZverlDLUrOKE 7j6F9eiHe/KjU8x5vWlbICzHdc/tgpsSVw6BCUM/se0F4sFZMkjP0dv+raytvtTQ7yNm em91fTmdnue3KDjtZEpnL99M411UfB9e5GZqxodyxQyAACbNnNZHiUTNr5JBnLGOje0x 9YUgHKXQFCTo15njdVYwAqO1N+cAYM5a+Z10aXLgX+IehHyBEHlm3XFaQKI/+Z9B6Wbx HlN45JwIOuhkI1mbvBBN/ZcSjruFhWVxu7iCvlPnkImXi2lTYV8utjZsWtBEuwJrPaOa pvKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=MyH7bb6Z; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id il16-20020a17090b165000b0020a66fc1398si27784117pjb.91.2023.01.13.14.49.23; Fri, 13 Jan 2023 14:49:29 -0800 (PST) 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=@kernel.org header.s=k20201202 header.b=MyH7bb6Z; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229640AbjAMVVC (ORCPT + 52 others); Fri, 13 Jan 2023 16:21:02 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56894 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229992AbjAMVU6 (ORCPT ); Fri, 13 Jan 2023 16:20:58 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7077E857CA for ; Fri, 13 Jan 2023 13:20:57 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 0A1E762344 for ; Fri, 13 Jan 2023 21:20:57 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 6511DC4339C; Fri, 13 Jan 2023 21:20:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1673644856; bh=Tdf6cUFrRR0hwdAWI/Kfn7YtQl15TbwB8vYhi1fhtIw=; h=Subject:From:Date:References:In-Reply-To:To:Cc:From; b=MyH7bb6ZwkVGaHib10/pqZMusN2vC57bhG7ZlE+9/ivMwb7R2R28MuIhsv+OGJXDS 0YBC1meOAVNLgmmr8+6KVKUtM1FeDCOHv08oUS32VF1FV0Nv5I9LLOMr9BTJZN5nlN VkifR/qzchmK0oeCCNzNznT4zsO4YnvvN4kcbXlM2lE5iGA6eZ6hNIHxMq+jKMMQ+i 8sh0YPSO9xIKSzpHFXKz2yr4QGxugxnz1sQ+SGBKmXIKBn4xqTKnknjqbk3HYMonNr hjfWv9T+WRyw2xawruOCxbTBVfGbsYL2FBq5q4pihGFb1Yu+dIj3OozwTscWEIAH15 LjrC7Rx8WB93w== Received: from aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (localhost.localdomain [127.0.0.1]) by aws-us-west-2-korg-oddjob-1.ci.codeaurora.org (Postfix) with ESMTP id 5325BE21EE2; Fri, 13 Jan 2023 21:20:56 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [PATCH] platform/chrome: cros_ec_lpc: initialize the buf variable From: patchwork-bot+chrome-platform@kernel.org Message-Id: <167364485633.21086.16143246139018637708.git-patchwork-notify@kernel.org> Date: Fri, 13 Jan 2023 21:20:56 +0000 References: <20230110193611.3573777-1-trix@redhat.com> In-Reply-To: <20230110193611.3573777-1-trix@redhat.com> To: Tom Rix Cc: bleung@chromium.org, groeck@chromium.org, nathan@kernel.org, ndesaulniers@google.com, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, llvm@lists.linux.dev X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,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 Hello: This patch was applied to chrome-platform/linux.git (for-next) by Tzung-Bi Shih : On Tue, 10 Jan 2023 14:36:11 -0500 you wrote: > Clang static analysis reports this problem > drivers/platform/chrome/cros_ec_lpc.c:379:13: warning: The left operand > of '!=' is a garbage value [core.UndefinedBinaryOperatorResult] > if (buf[0] != 'E' || buf[1] != 'C') { > ~~~~~~ ^ > > The check depends on the side effect of the read. When the read fails > or is short, a buf containing garbage could be mistaken as correct. > > [...] Here is the summary with links: - platform/chrome: cros_ec_lpc: initialize the buf variable https://git.kernel.org/chrome-platform/c/2ae3c610e7d2 You are awesome, thank you! -- Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html