Received: by 2002:a05:7412:b101:b0:e2:908c:2ebd with SMTP id az1csp2401226rdb; Tue, 14 Nov 2023 22:29:27 -0800 (PST) X-Google-Smtp-Source: AGHT+IFn5GY/utsELIQTV2U1kXnqH2IjnOq+lhT/aoXP/TX1VxEO/LyErDzFt27p8bmHhQ/cNQMr X-Received: by 2002:a05:6a00:2715:b0:6b4:6b34:8cef with SMTP id x21-20020a056a00271500b006b46b348cefmr9380924pfv.34.1700029767128; Tue, 14 Nov 2023 22:29:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700029767; cv=none; d=google.com; s=arc-20160816; b=BJKSl90FoRbWxCtewMZtJVnUVR0qoRUlv5aGeuDKj7xKwsP+gH7pGhdANTDNWRjkL/ K4SWJZMOzGkVU84WE2XHlPzYSl1RUMZSFk+DmOnCgyun4/OmfKSphR9fWZ2lgIzteSwS Pfym/bUxAWcuutfEnV2xCyMUkoHNTntIAN1vtq6I16pSUsZN/nKSG1qJBo95s1rV5ZTk KgnC1YKDhj6nnQVovnMIQI48lkjKYwxDi43Q6suX681/1Edf9AiZdzfEbFiBrb4o6VaP CSbo9nUotmtnmaO2yEJPrYNZfxo528Jfnca+cFXzNf7aK9htS0LH8FnSBZnadQdTMFDP CkdA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:organization :message-id:user-agent:references:in-reply-to:subject:cc:to:from :date:mime-version; bh=1i35YgpisQirXC5y/4LwrZ9F72j8HFhIRLVORr7sroQ=; fh=iVUXtRI66+c8xxrmOVmxXEMFtQKA34AvpPq7FodoE/Y=; b=CssA2R8+Sgad4+CGuEnEjrnLmuSE6G9B8fd5A5jWnFkJEJ+cYqEs1QbrkFi06lcqgy JNLwO6M825PuxmjG8NDD4+4PZz1GXZoF+IptO3HlgRhpGndnkKn5+mdm1rPqbQRp6ex3 E6iYOaah6/2x9x5xwBaWaK4JswWBL4EIqh5Rrh/Aa4pVwrJ/ayQR4pdp3f4uzNmmmPsb lelOA+vNMVKFwFyVPUrfOHrl9sqn3+Spz5YvuwvgYdA46GCxMYWmvAy87xGU7ABmeOHH 5VhlAt7rFvuzNoyCbi/J5VzeAmOBlVBUrfYimHvAcHU3jp9x5EsA+kasQzjcBv0Nv/4p fgNw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from fry.vger.email (fry.vger.email. [23.128.96.38]) by mx.google.com with ESMTPS id bx12-20020a056a02050c00b005be0fa3c159si9766542pgb.457.2023.11.14.22.29.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 22:29:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) client-ip=23.128.96.38; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.38 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id 93983802177B; Tue, 14 Nov 2023 22:29:24 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234582AbjKOG3Q (ORCPT + 99 others); Wed, 15 Nov 2023 01:29:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59246 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234084AbjKOG3P (ORCPT ); Wed, 15 Nov 2023 01:29:15 -0500 Received: from 6.mo550.mail-out.ovh.net (6.mo550.mail-out.ovh.net [46.105.43.205]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89213EB for ; Tue, 14 Nov 2023 22:29:10 -0800 (PST) Received: from director1.ghost.mail-out.ovh.net (unknown [10.108.16.135]) by mo550.mail-out.ovh.net (Postfix) with ESMTP id 6740D28F02 for ; Wed, 15 Nov 2023 05:52:54 +0000 (UTC) Received: from ghost-submission-6684bf9d7b-p7h5p (unknown [10.109.156.181]) by director1.ghost.mail-out.ovh.net (Postfix) with ESMTPS id B9F281FE33; Wed, 15 Nov 2023 05:52:52 +0000 (UTC) Received: from RCM-web6.webmail.mail.ovh.net ([151.80.29.20]) by ghost-submission-6684bf9d7b-p7h5p with ESMTPSA id KK+VK7RcVGUPGyAA34RSKA (envelope-from ); Wed, 15 Nov 2023 05:52:52 +0000 MIME-Version: 1.0 Date: Wed, 15 Nov 2023 07:52:52 +0200 From: =?UTF-8?Q?Jos=C3=A9_Pekkarinen?= To: Hamza Mahfooz Cc: harry.wentland@amd.com, sunpeng.li@amd.com, Rodrigo.Siqueira@amd.com, alexander.deucher@amd.com, christian.koenig@amd.com, Xinhui.Pan@amd.com, skhan@linuxfoundation.org, airlied@gmail.com, daniel@ffwll.ch, Wayne.Lin@amd.com, qingqing.zhuo@amd.com, lyude@redhat.com, srinivasan.shanmugam@amd.com, aurabindo.pillai@amd.com, sungjoon.kim@amd.com, wenjing.liu@amd.com, mikita.lipski@amd.com, amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-kernel-mentees@lists.linux.dev Subject: Re: [PATCH v2] drm/amd/display: fix NULL dereference In-Reply-To: <689f3862-09d5-448d-b418-fd52d7288106@amd.com> References: <20231114152751.30167-1-jose.pekkarinen@foxhound.fi> <689f3862-09d5-448d-b418-fd52d7288106@amd.com> User-Agent: Roundcube Webmail/1.4.15 Message-ID: <87904eedaf4170e2302450eaa27f57d0@foxhound.fi> X-Sender: jose.pekkarinen@foxhound.fi Organization: Foxhound Ltd. X-Originating-IP: 45.151.167.10 X-Webmail-UserID: jose.pekkarinen@foxhound.fi Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Ovh-Tracer-Id: 6680527099856594625 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvkedrudefhedgvddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhepggffhffvvefujghffgfkgihoihgtgfesthekjhdttderjeenucfhrhhomheplfhoshorucfrvghkkhgrrhhinhgvnhcuoehjohhsvgdrphgvkhhkrghrihhnvghnsehfohighhhouhhnugdrfhhiqeenucggtffrrghtthgvrhhnpeekhfeguddufeegvdelgedtvdffgeehvddtkeevkeejvedvgeeitdefleehtdeitdenucfkphepuddvjedrtddrtddruddpgeehrdduhedurdduieejrddutddpudehuddrkedtrddvledrvddtnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepuddvjedrtddrtddruddpmhgrihhlfhhrohhmpeeojhhoshgvrdhpvghkkhgrrhhinhgvnhesfhhogihhohhunhgurdhfiheqpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqkhgvrhhnvghlsehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehhedtpdhmohguvgepshhmthhpohhuth X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on fry.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (fry.vger.email [0.0.0.0]); Tue, 14 Nov 2023 22:29:24 -0800 (PST) On 2023-11-14 23:01, Hamza Mahfooz wrote: > On 11/14/23 10:27, José Pekkarinen wrote: >> The following patch will fix a minor issue where a debug message is >> referencing an struct that has just being checked whether is null or >> not. This has been noticed by using coccinelle, in the following >> output: >> >> drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_helpers.c:540:25-29: >> ERROR: aconnector is NULL but dereferenced. >> >> Fixes: 5d72e247e58c9 ("drm/amd/display: switch DC over to the new DRM >> logging macros") > > You only need the first 12 characters of the hash here. I have fixed it > for you and applied the patch in this case. But, in the future please > test your patches against `./scripts/checkpatch.pl` before submitting > them. Oops! Sorry I didn't notice! Thanks! José.