Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp1827376rwi; Thu, 3 Nov 2022 09:28:39 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4f9S4ZupW/42+iOYcOQ7Tu461Wj6eAwBcbxVyY4tmykcA73YEXEIUxnLGP2Vtbr8XzNerx X-Received: by 2002:a17:907:6e9e:b0:78c:5533:4158 with SMTP id sh30-20020a1709076e9e00b0078c55334158mr28074875ejc.417.1667492919247; Thu, 03 Nov 2022 09:28:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667492919; cv=none; d=google.com; s=arc-20160816; b=d52gmo6mWseB+wCj4KfUUsoSLZ6x1EtE51U+e1tu8r25ZOP48Vreibr3v0yJF2RTJk k18IYVVMxJt7c+bVU9cgAkBGHBvpHkglAKGnUx9PUFe6Uz05vvyA+AePw46ku34vNVxs zPf3DoRTrvkFhy2QxzVxusTr/yf8d6ubQ7RFtgPO510WF7PP+huTVnYvBkpSpU3szyZd 5q+tf8caN6pJ/qBZqQNqI7EzDQ7UlzeoehwzT5+4Lsva5D5P3pd4zWgJUomtb6XyV4fD A5FDRwZhydblz9UvJW8Fe30n+vOQ/a5LWjlBrh7A6DHOinVq+b4akDHaxvN7iuxuFYOF gOQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent :content-transfer-encoding:references:in-reply-to:date:cc:to:from :subject:message-id:dkim-signature; bh=MVCVa7KWVIH7S5RnoHtmNnvvrOGrqEfTeCPuTEI4FLc=; b=pCEvmn69DjtPh8gkllwsqoLWL/M+/l3VpncuC7CVmu/F/WFZSBXz3QekbLRCD86y1s /NYS0rSx+3Bl/26BuLMxum2Ib/OTydazB6ZlSFw4is5aTf4GL+r8DMP2izPQvuBm7OG+ TDkLnGRB5eO/zd3NeF2vvoPOYjybK/PGpKdH703EwFBLAh/sNNdkqIU9xm8NMMZCod0+ ztnVTw7/Wh9ljvPC6q2w3yK9FwsV0eJ0y25MGfssrMOHlcG6U6OSli8mMwGX59zErCTd g64yTDywCClcKjpdBa0WeUfXaA4zJ5oD5ga11p5VHsqeGY3/dHUe8e/yWLxgW9Ey2run oSxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=BuefWQlJ; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a25-20020a1709062b1900b0079330b37fb5si1345402ejg.564.2022.11.03.09.28.15; Thu, 03 Nov 2022 09:28:39 -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=@collabora.com header.s=mail header.b=BuefWQlJ; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231398AbiKCQRe (ORCPT + 97 others); Thu, 3 Nov 2022 12:17:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45712 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229708AbiKCQRc (ORCPT ); Thu, 3 Nov 2022 12:17:32 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 45FCE18363; Thu, 3 Nov 2022 09:17:31 -0700 (PDT) Received: from nicolas-tpx395.localdomain (192-222-136-102.qc.cable.ebox.net [192.222.136.102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: nicolas) by madras.collabora.co.uk (Postfix) with ESMTPSA id 66FEB6602962; Thu, 3 Nov 2022 16:17:27 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1667492249; bh=UF8gcf9Zdsra79jQbu7uASjF23J3RPW5N777RLTHhuY=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=BuefWQlJf8M4p09e0/uP4GwZBjBH8QwGMfRznG/AwyOlcJj/RN64+2lpdnSV4cTNK n+huZqFNDDR3di5xNQ/VMT5NhuiG0V9Xq/50r3FVSBLnY/VAeg4HPpl7iryOOPFazz xAnb4V7qFNpJVHZbEDNFS3VSkWY7jWTXdyl3tAv29BtVo17G0BMwKR9/mKBxAGtK1B UXEf5yEGt8vDymhc5wEnFfMFhj2wmOPe1NFdWOejaPwclO+ASdD+i+K4HNwIF0RE4X accQfnWvEhuO/Ph1cAufgt6fTa0P1fuXvZ/alaa5/rrH2zX55/ezcLRmhhh6u3qgTi WogQ4pHX/hJ4A== Message-ID: Subject: Re: [PATCH v2] vcodec: mediatek: add check for NULL for From: Nicolas Dufresne To: Anastasia Belova , Mauro Carvalho Chehab , Matthias Brugger Cc: Tiffany Lin , Andrew-CT Chen , Yunfei Dong , AngeloGioacchino Del Regno , Hans Verkuil , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, lvc-project@linuxtesting.org Date: Thu, 03 Nov 2022 12:17:17 -0400 In-Reply-To: <20221102121027.4285-1-abelova@astralinux.ru> References: <20221102121027.4285-1-abelova@astralinux.ru> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.44.4 (3.44.4-2.fc36) MIME-Version: 1.0 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 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 Le mercredi 02 novembre 2022 =C3=A0 15:10 +0300, Anastasia Belova a =C3=A9c= rit=C2=A0: > Any time calling vp9_is_sf_ref_fb we need fb !=3D NULL after checks. >=20 > Found by Linux Verification Center (linuxtesting.org) with SVACE. >=20 > Fixes: f77e89854b3e ("[media] vcodec: mediatek: Add Mediatek VP9 Video De= coder Driver") As Angelo said, this change is a no-op in practice, for this reason I would suggest to drop the `Fixes` tag (not worth the effort of back-porting this)= . >=20 > Signed-off-by: Anastasia Belova Reviewed-by: Nicolas Dufresne > --- > drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c b/= drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c > index 70b8383f7c8e..776468cd834a 100644 > --- a/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c > +++ b/drivers/media/platform/mediatek/vcodec/vdec/vdec_vp9_if.c > @@ -208,6 +208,9 @@ static bool vp9_is_sf_ref_fb(struct vdec_vp9_inst *in= st, struct vdec_fb *fb) > int i; > struct vdec_vp9_vsi *vsi =3D inst->vsi; > =20 > + if (!fb) > + return true; > + > for (i =3D 0; i < ARRAY_SIZE(vsi->sf_ref_fb); i++) { > if (fb =3D=3D &vsi->sf_ref_fb[i].fb) > return true;