Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp485614rwr; Thu, 27 Apr 2023 04:24:39 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7MEagMasBR3+V6nMh14O9VrsYxJiZkwpylYJIxeTcdpwK6Zl+7jjHvqB1G8L2jOrXfoO3K X-Received: by 2002:a17:902:ecca:b0:1a9:581b:fbaa with SMTP id a10-20020a170902ecca00b001a9581bfbaamr1498370plh.2.1682594678825; Thu, 27 Apr 2023 04:24:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682594678; cv=none; d=google.com; s=arc-20160816; b=PcLp1tJB3ESzeRLKj85Ig/muciY9DZCm934M8x8YIO3UdNdUsBEin4dEUQKO/X5Aca XZ3VeUk49I0/G4d9RGCYWEMH8NSs3SxL9E6a1ysnMI3wE9rTXth38q28wEnojsrskxY2 sude4/jcJ68I7QxtSjLb1ZNsvEDrwoLfBDuV4B7sU2urPH1NuOVVN6hgsoTwvqmduYPW KMN7aSTbBUyyZnX3+MYxchqGVesIcFqxjgmLFY74JEnPNBh26gZ1Lgrtr835RD+GVOWy 6vbXLv6otkK9nE5PrfoFI/wiX+keMZG6jenNXozS8lE515nbOHqP7Pcl5ik45vNjbyn1 9kwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:content-transfer-encoding:mime-version :message-id:date:subject:from:dkim-signature:dkim-signature; bh=jVXoVXg8/foIvtk1HSVTS9IFiWavdgfSZrmDFz15p/E=; b=DE2Ym3/K0KcgaNLSgPwNC9G6J1NpCTma8Fkd7WiVkHeclwRrJJaNvu6J7A+I0EcCaf KtlurVidD13hBg8/KdiDJMYdeAmKofXn7XpWBuTeeHfNoDw4paXlK14mjTBUllKzKne7 srzv7jAz4x+y2bRC/aU4qgjMYACaVpuluqXFj4WZG+bl+TBZq11qz/nSYblTB8vlJRNc QowHSLjq2gOYUgbesq8KLu503gsDDwAU70sv91DXRiNFgXlrNneWjTH+P5jBCaJLHMgZ 1mDd/N4epz6caP9mMBG2mxGE4nbuAmgY/cQNKuZGBFb+cvwSqcnMdr/oNJc/7YTQALv4 bKNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@codewreck.org header.s=2 header.b=C7RcQrFk; dkim=pass header.i=@codewreck.org header.s=2 header.b=C7RcQrFk; 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=codewreck.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id t2-20020a17090ad50200b0023033ddad2fsi20818692pju.73.2023.04.27.04.24.24; Thu, 27 Apr 2023 04:24:38 -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=@codewreck.org header.s=2 header.b=C7RcQrFk; dkim=pass header.i=@codewreck.org header.s=2 header.b=C7RcQrFk; 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=codewreck.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243404AbjD0LXz (ORCPT + 99 others); Thu, 27 Apr 2023 07:23:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35336 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242993AbjD0LXw (ORCPT ); Thu, 27 Apr 2023 07:23:52 -0400 Received: from nautica.notk.org (ipv6.notk.org [IPv6:2001:41d0:1:7a93::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 24A134C00; Thu, 27 Apr 2023 04:23:50 -0700 (PDT) Received: by nautica.notk.org (Postfix, from userid 108) id D83BBC01F; Thu, 27 Apr 2023 13:23:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1682594626; bh=jVXoVXg8/foIvtk1HSVTS9IFiWavdgfSZrmDFz15p/E=; h=From:Subject:Date:To:Cc:From; b=C7RcQrFkJ1fGRAgnpF7SCNbWDIC1DfcBggZwM+vR8fgkIlrJdfwJGYoufWtmscmi/ eGOQVOxJa9t3cYTnKDhBbpqx5kezB7/bjkFLj12AHSENuIOfkI7thwf/V2mc9gFfTA mAah0+pshvxoCxKnAvX+eN8h+QDZZ95gGTv8d5EX9c2LghXdfSuNQiWD8MgYwJneVB tNEUJH2njMBEVD7HfDR8Ol7kREiQ9RGAUDcX3lg4C8ArMTybO5GQpAxBm4uJenWxn7 58My583CGEuKTsZlTXPU5bi9+dLbfo5MeuCQpfckRYxokFrFB2M2Wx+wys2SLCNrbz 3QFZwz2HSF9yg== X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net X-Spam-Level: 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_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from odin.codewreck.org (localhost [127.0.0.1]) by nautica.notk.org (Postfix) with ESMTPS id 200E4C009; Thu, 27 Apr 2023 13:23:41 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=codewreck.org; s=2; t=1682594626; bh=jVXoVXg8/foIvtk1HSVTS9IFiWavdgfSZrmDFz15p/E=; h=From:Subject:Date:To:Cc:From; b=C7RcQrFkJ1fGRAgnpF7SCNbWDIC1DfcBggZwM+vR8fgkIlrJdfwJGYoufWtmscmi/ eGOQVOxJa9t3cYTnKDhBbpqx5kezB7/bjkFLj12AHSENuIOfkI7thwf/V2mc9gFfTA mAah0+pshvxoCxKnAvX+eN8h+QDZZ95gGTv8d5EX9c2LghXdfSuNQiWD8MgYwJneVB tNEUJH2njMBEVD7HfDR8Ol7kREiQ9RGAUDcX3lg4C8ArMTybO5GQpAxBm4uJenWxn7 58My583CGEuKTsZlTXPU5bi9+dLbfo5MeuCQpfckRYxokFrFB2M2Wx+wys2SLCNrbz 3QFZwz2HSF9yg== Received: from [127.0.0.2] (localhost [::1]) by odin.codewreck.org (OpenSMTPD) with ESMTP id 380c93ba; Thu, 27 Apr 2023 11:23:38 +0000 (UTC) From: Dominique Martinet Subject: [PATCH 0/5] Fix scan-build warnings Date: Thu, 27 Apr 2023 20:23:33 +0900 Message-Id: <20230427-scan-build-v1-0-efa05d65e2da@codewreck.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-B4-Tracking: v=1; b=H4sIADVbSmQC/x2NywrCQAwAf6XkbKDdro/6K+Ihm01tQFdJtAil/ +7W4zAMs4CLqTicmwVMZnV9lgrdrgGeqNwENVeG0Ia+jeGIzlQwffSeMZ+GyN1h5CHuoQaJXDA ZFZ625EH+FtvEy2TU7/9yua7rD0ZScqp1AAAA To: Eric Van Hensbergen , Latchesar Ionkov , Christian Schoenebeck , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Dominique Martinet X-Mailer: b4 0.13-dev-f371f X-Developer-Signature: v=1; a=openpgp-sha256; l=1398; i=asmadeus@codewreck.org; h=from:subject:message-id; bh=6PlNe9lfmPfOEWHqtma7PibG4siEPs36zdly+6bGUuk=; b=owEBbQKS/ZANAwAIAatOm+xqmOZwAcsmYgBkSls60h0DpmVzRXj0rpqWog9goutNMT7qXpg6E XpD+qzkMy6JAjMEAAEIAB0WIQT8g9txgG5a3TOhiE6rTpvsapjmcAUCZEpbOgAKCRCrTpvsapjm cPNyD/9Z+pd8kuYDrTSem3Amm2Dv49YbUsvjjp9jaR7c8KB2F9UIDgokCdaNp2YzBLkrHLdm8d/ VBMPRTgwRuuSF7AFBYIaTsnagjWhMs4tPI29G1AZwZc07GeyPK+LOAX/e12B2peGqQOW5VnbzW8 PbEvHwGXygdqMxqaSd63in8qefpsWPBzjChOMdvLNWpoIMRVjGcBhEh2P8bGBGHoTnHM+3dP6tn +FuM8s9Io8b4R03wMbm08LO+5NaW+mF5W7HJy+P6R8UmbgMUCTmoN2GM5aY2LUK3hI8FctPyaOK I0WgWne8r+rDeZk8t58pXzuKjb7b/0/XVLdWjndz/lg+ZxUWaZS+t144JqrtxIOyUusqyYEIRw9 ymLmjfk8rvIdQiFbMrDS9b6K1MNulvogMqkM3OqMNqpnf/ox8i7AdOdbThz4KMbOgVktGTRYQFt p94DUtS8mqF7xoAdn6eiaHXh9IUos/rnbM7uhLyX/Wn/GT8hX6vfHG0zfQ+G9SvvYJSauUCIBm8 qa9tlTwOehX/3OiBOUHahEToLVY5tDlJUPWBsCZ5JsqhQdfMkDirn9SDSHX2U8Xa+lV3bmrUPh6 IDF5B3dfZ1ZRDQGwF9flc0F/gXkG6jJDHw+LVgTwhDZpGTbFCg85Bx16FDbMnhaRfb6iWDmCkoD hbGHJMbH8VlmApw== X-Developer-Key: i=asmadeus@codewreck.org; a=openpgp; fpr=B894379F662089525B3FB1B9333F1F391BBBB00A Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org I ran scan-build very crudly on our source files, and there was at least one real bug so we might as well run it once in a while, in which case we probably ought to also fix the less important things hence this series. In here the first patch is a real fix and the rest is low priority, the last one is arguably not an improvement and can be discussed (happy to just move the 0-initializations around to variable declaration which would also silence scan-build afaict) Anyway, it can probably all wait until after this merge, sorry for the timing. Signed-off-by: Dominique Martinet --- Dominique Martinet (5): 9p: fix ignored return value in v9fs_dir_release 9p: virtio: fix unlikely null pointer deref in handle_rerror 9p: virtio: make sure 'offs' is initialized in zc_request 9p: virtio: skip incrementing unused variable 9p: remove dead stores (variable set again without being read) fs/9p/vfs_dir.c | 5 +++-- fs/9p/vfs_inode.c | 6 ------ fs/9p/vfs_inode_dotl.c | 1 - net/9p/client.c | 46 ++++++++++++---------------------------------- net/9p/trans_virtio.c | 8 ++++---- 5 files changed, 19 insertions(+), 47 deletions(-) --- base-commit: 4eb3117888a923f6b9b1ad2dd093641c49a63ae5 change-id: 20230427-scan-build-d894c16fc945 Best regards, -- Dominique Martinet | Asmadeus