Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3079511rwb; Sun, 20 Nov 2022 07:02:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf6Wlr0Ji3/gRuubi67JRTSt8pcRCcJExVejD17ONZl4kKwdvV8CnBmhpicu/dO3v9dvAyFk X-Received: by 2002:a17:906:89a3:b0:78d:408a:4a18 with SMTP id gg35-20020a17090689a300b0078d408a4a18mr12344213ejc.261.1668956557072; Sun, 20 Nov 2022 07:02:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668956557; cv=none; d=google.com; s=arc-20160816; b=NM5AQlT+hPbhGODZaqftQIJaeW9/zzH5o1SZ/Kr2BeLtYTfNyYytYmBqS1QShmhzya vZdm7PrVcFy4m7frT6NKk2CaCdDph0YxD18td3EFIYahZNv/cEL91zDL3XFKS45B/kCx PVpoKMk7eILThlIX7PS5G8uVYZZxmUZvQzbvlHYhEDUHSk9pviy970yr0+z0buZxvOb2 P/ltozreykomFV8OH+hZj3YONnhtw/ki9tsGQMWO6S53/Xb9iMS+FqKpG9gooLksTK4r SGPm5P6+jqCvTJw71fEKwP85Xdn00UH/V5g3gG9OlCeKHoqeNeeGqTEUmDBoTqPul7FD Eisw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:ui-outboundreport:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dkim-signature; bh=FFLjOZn0sVHKOreaEmKwpRdWPja50G8UcNn6gnxIzrY=; b=Ep1SRtMbW28FueAaOjPrWpLwrZa3i30r/s0cJlseawpQA6muW80MmQDize106KpZuM Yw2p+CAJSzpy1nYNz9rNMugm1s5rtb6TpoMruxHq6eW+sJJcMFMa3AgkzHw44p4Gy5GR nsVruxArvBbl8ukO/WC3cW6dp7+mpeL4tcsglhUgi82leserMD/0h1rLyfO/L19JrWXq 7TQqN/pSOkiV5kCmZT5zYDHFLZ2DFgcUM79KZYHSIUa9nked3kxeWK5N26BqcHWacSC/ wb/bavmgm9z8oSj55HAA28uRRUi6uqcDesv4sOB+o41nzc8zD2wGS5saJ+Gahu/rXBfv fy7Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.de header.s=s31663417 header.b=ncSXXE3C; 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=gmx.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id qk42-20020a1709077faa00b0078dad659776si878561ejc.320.2022.11.20.07.02.12; Sun, 20 Nov 2022 07:02:37 -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=@gmx.de header.s=s31663417 header.b=ncSXXE3C; 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=gmx.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229716AbiKTO20 (ORCPT + 92 others); Sun, 20 Nov 2022 09:28:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34698 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229645AbiKTO2Y (ORCPT ); Sun, 20 Nov 2022 09:28:24 -0500 Received: from mout.gmx.net (mout.gmx.net [212.227.15.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AE3A413DE4; Sun, 20 Nov 2022 06:28:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.de; s=s31663417; t=1668954490; bh=FFLjOZn0sVHKOreaEmKwpRdWPja50G8UcNn6gnxIzrY=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=ncSXXE3CeosOJ1S0V0vpONVMqGIFacon2JAF5mvmrhqfFuDfJkYgEN2H2rDg0dH2B wS2X4g2u4e/Fzo8CJ3EDfNi6csfNJJWip/UmTKs9FpxYT+CazJiWjPMIKpq3stQKAG oYrgAVoDXeVeCx1r2Spgqu7KGOHlvhNfj5SC0cKtXp/ErF2PAcPPYIwfB8jHV9WSUA 6xG3M9L7xWd3d3VF53VznP/K+qBTm67WK7grh6vLOQgNhK67e8pFp4oywyvFhGcQ0z OrCONTLmWjSYODPGvvQ41bOrc++B3tUp/ygZxkGUjv3YGeEa4uzDOBWRfJrfyfN20E 5TWTmMC48izbQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from Venus.speedport.ip ([84.162.7.17]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1MGQjH-1oigGV2ei5-00Gma9; Sun, 20 Nov 2022 15:28:10 +0100 From: Lino Sanfilippo To: airlied@gmail.com, daniel@ffwll.ch, eric@anholt.net Cc: emma@anholt.net, mripard@kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, l.sanfilippo@kunbus.com, LinoSanfilippo@gmx.de, lukas@wunner.de, p.rosenberger@kunbus.com, stable@vger.kernel.org Subject: [PATCH] drm/vc4: Fix NULL pointer access in vc4_platform_drm_probe() Date: Sun, 20 Nov 2022 15:27:37 +0100 Message-Id: <20221120142737.17519-1-LinoSanfilippo@gmx.de> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 Content-Transfer-Encoding: base64 X-Provags-ID: V03:K1:qQu1bYLAxugZ7PmynALkLG5dBwB5an5uvZob0l76RManhYz9egy i91IPntzWX8eo5d57MDDd0bGH+LZfUEM8O2uaszoDE96RuiKy4EagpjPe5o7A3QvRAnRGw0 1rcKhaOjxUReLTR+oDvu8DaD0pc1+pSq7blXlZdoiGF+WHtGHrY3W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score=-1.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,MIME_BASE64_TEXT, RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,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 RnJvbTogTGlubyBTYW5maWxpcHBvIDxsLnNhbmZpbGlwcG9Aa3VuYnVzLmNvbT4KCkluIHZjNF9w bGF0Zm9ybV9kcm1fcHJvYmUoKSBmdW5jdGlvbiB2YzRfbWF0Y2hfYWRkX2RyaXZlcnMoKSBpcyBj YWxsZWQgdG8KZmluZCBjb21wb25lbnQgbWF0Y2hlcyBmb3IgdGhlIGNvbXBvbmVudCBkcml2ZXJz LiBJZiBubyBzdWNoIG1hdGNoIGlzIGZvdW5kCnRoZSBwYXNzZWQgdmFyaWFibGUgIm1hdGNoIiBp cyBzdGlsbCBOVUxMIGFmdGVyIHRoZSBmdW5jdGlvbiByZXR1cm5zLgoKRG8gbm90IHBhc3MgIm1h dGNoIiB0byBjb21wb25lbnRfbWFzdGVyX2FkZF93aXRoX21hdGNoKCkgaW4gdGhpcyBjYXNlIHNp bmNlCnRoaXMgcmVzdWx0cyBpbiBhIE5VTEwgcG9pbnRlciBhY2Nlc3MgYXMgc29vbiBhcyBtYXRj aC0+bnVtIGlzIHVzZWQgdG8KYWxsb2NhdGUgYSBjb21wb25lbnRfbWF0Y2ggYXJyYXkuIEluc3Rl YWQgcmV0dXJuIHdpdGggLUVOT0RFViBmcm9tIHRoZQpkcml2ZXJzIHByb2JlIGZ1bmN0aW9uLgoK Rml4ZXM6IGM4Yjc1YmNhOTJjYiAoImRybS92YzQ6IEFkZCBLTVMgc3VwcG9ydCBmb3IgUmFzcGJl cnJ5IFBpLiIpCkNjOiBzdG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