From patchwork Wed Jun 16 12:28:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mauro Carvalho Chehab X-Patchwork-Id: 12324951 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=-12.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 A1832C48BE6 for ; Wed, 16 Jun 2021 12:30:26 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6293461359 for ; Wed, 16 Jun 2021 12:30:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6293461359 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=TQ9tKr/Ta3YO16S2kebjFt+h/xb+2UBlKYj0z8UKPzE=; b=MH2RfbC1U7m2pV bBK66oPDkbXIA17hlUdeVMPl/vdevVS+e9hegItx9q63xoL4TrDz64OgjnkZEcPa3AhQDMOmMzRQA x/9+NVPh0CiERwOfYM3uHzc0qYUbtzxCx0WKHnuQU9b/n6yNDkYlcnBlemsgNFIEgaqmbIJkiVE5b PfntA6irdcMy4C5JPko4oQcAXM2kRQDKoFiCKTUpf3PRnHJd71hqQHeJ3I99Ch/TSdacR1tLnyVJF 3zK+uEgC9PHexjArMILlhGrb6HnQ9O3noXAqLP6sYM4CNtPo6j2SlqFSw7OwUmyFbgWIjCqbiXKn8 pNzoOQaDODKWBVfbYsyQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltUfD-006EAO-PC; Wed, 16 Jun 2021 12:28:59 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1ltUev-006Dz6-0l for linux-arm-kernel@lists.infradead.org; Wed, 16 Jun 2021 12:28:42 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 808846135C; Wed, 16 Jun 2021 12:28:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1623846520; bh=qMLD5L33JuSzop8XE5CQqNRAcxqJX553vmnX+Xl74Dc=; h=From:To:Cc:Subject:Date:From; b=L/R2NwoGZMLbmQtky2swZPfqmxZlTIbB4ppAfSV2KG39FufEVQkDEWsG+tSOnkrRo Zjx63oN3Kk4Cz/4+sAf/tADqRztyaneLNBu3PCY7MA7UEtFLwEjsYo0I5zpoTz3kIt VOb05SczaB9QOKupeFsqMD7GSMF3Y8aU3tJn4FRlyw1lUh8TdUf5BcPQLvlrG6oz60 61SvPNCFbUn23aUKvv0tAQqnCdfHNjsbTN4QMxy8Gc5yNxk1Mt0ZbqE4paFO1BUp4k tggLIXxkvTvzWXb0ZVizM7mgte/VwMYrIOuBriXtcDGKYXs+gJ7DBcb6rSf2qUFkoY UsNqeYaRtmUbQ== Received: by mail.kernel.org with local (Exim 4.94.2) (envelope-from ) id 1ltUes-004oiL-5M; Wed, 16 Jun 2021 14:28:38 +0200 From: Mauro Carvalho Chehab To: Cc: linuxarm@huawei.com, mauro.chehab@huawei.com, Mauro Carvalho Chehab , Chen-Yu Tsai , Hans Verkuil , Jernej Skrabec , Mauro Carvalho Chehab , Maxime Ripard , Yong Deng , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-sunxi@lists.linux.dev Subject: [PATCH 00/11] Address some smatch warnings Date: Wed, 16 Jun 2021 14:28:26 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210616_052841_158440_FFFBF4CF X-CRM114-Status: UNSURE ( 8.84 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org There are currently a couple of smatch warnings at the media subsystem. This series fix several of them. The end goal is to reduce smatch warnings to be close to zero, but there are still some work to be done. I'll likely submit another round along this week. Mauro Carvalho Chehab (11): media: dvb_ca_en50221: avoid speculation from CA slot media: dvb_net: avoid speculation from net slot media: dvbdev: fix error logic at dvb_register_device() media: sun6i-csi: add a missing return code media: saa7134: use more meaninful goto labels media: saa7134: fix saa7134_initdev error handling logic media: siano: fix device register error path media: adv7842: better document EDID block size media: ttusb-dec: cleanup an error handling logic media: dvb-core: frontend: make GET/SET safer media: xilinx: simplify get fourcc logic drivers/media/common/siano/smsdvb-main.c | 4 + drivers/media/dvb-core/dvb_ca_en50221.c | 1 + drivers/media/dvb-core/dvb_frontend.c | 213 ++++++++++-------- drivers/media/dvb-core/dvb_net.c | 25 +- drivers/media/dvb-core/dvbdev.c | 3 + drivers/media/i2c/adv7842.c | 33 ++- drivers/media/pci/saa7134/saa7134-core.c | 39 ++-- .../platform/sunxi/sun6i-csi/sun6i_video.c | 4 +- drivers/media/platform/xilinx/xilinx-dma.c | 5 +- drivers/media/platform/xilinx/xilinx-vip.c | 6 +- drivers/media/usb/ttusb-dec/ttusb_dec.c | 25 +- 11 files changed, 201 insertions(+), 157 deletions(-)