Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp709730pxr; Mon, 11 Apr 2022 05:20:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyA/AueBumwMxHoAYCuAbh4LhU6AQ5QDnZLsm7hjTBLG7rlt17MybQbDnoy3uPWdGHVDkka X-Received: by 2002:a63:ec0c:0:b0:39d:3aa6:4513 with SMTP id j12-20020a63ec0c000000b0039d3aa64513mr6460481pgh.391.1649679605780; Mon, 11 Apr 2022 05:20:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649679605; cv=none; d=google.com; s=arc-20160816; b=wBWCeGABuOyBB3v0x11tzqGBedcdRjR61wSqRDwCXefJQf+oEVfrlFfR7o0ajFJuGu nSSre3JDJMHKmwLTYZKOlc+IcJncrdrKntRqRbkAEjkmmRO1FYtknXbU/Rt7vr9lft0L puDLCemS7thvVWr/xw4xxTxBW3tFE5BgnHtBJc3WtF8CvN75mwYVQJ/tJDAe3yUi6nGE K2zsLSMHJM/KSjDYKQY6r7z87hQH7ULmzhtdAmSQeL2CvmRFwZlTR2AqT7671/C15Y9t FdNe/+EuFIBVlQ836Cta0VyELEuogLuvs9HSruYpcRtsxWYAI3kwt+7FigirolrJT8bJ WpoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:reply-to:cc:from:to :dkim-signature:date; bh=Zvbi7xqEswNRrjsp8sgXVujH0Lr0d/k1PRut6FcweZY=; b=RJMpnZVLEiVkyaCSRYlDk/GYXKTT4ixLQMCZNKq8hrTcDU+qLiy4FyG6/7fl7AfTQT gePNgbnuPmZKK/m0hfpzU34qBbwe4fdrcH2/EoK5rUvH4WyFdFcvUXDpmH6vQ0shdrw1 7xnrOtfDjmPdOdfV7OCaqMI3fqANbg2Br30OPWXbpiq2vtpKkfgVbl+v0Ei/ZEa9fNAI z/04Y+Z/QKkc+DQxSMyrgDN03tfTZTj25sv+7Iew2IAq09Wfla4mzkpjk4fzDVBF2Wjn tbIsQJgkM5kerABtgFKHXkDnrFmI2KbrrTMDgSoAGfuaaSJM2a5umuQeYdQl3sO3i/uv pVRg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@emersion.fr header.s=protonmail2 header.b=hemnCB5P; 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=emersion.fr Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ob14-20020a17090b390e00b001c7c48c9fbbsi5935098pjb.8.2022.04.11.05.19.44; Mon, 11 Apr 2022 05:20:05 -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=@emersion.fr header.s=protonmail2 header.b=hemnCB5P; 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=emersion.fr Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235099AbiDHLu3 (ORCPT + 99 others); Fri, 8 Apr 2022 07:50:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34288 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235074AbiDHLu1 (ORCPT ); Fri, 8 Apr 2022 07:50:27 -0400 Received: from mail-4022.proton.ch (mail-4022.proton.ch [185.70.40.22]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 07D9F1F127C for ; Fri, 8 Apr 2022 04:48:22 -0700 (PDT) Date: Fri, 08 Apr 2022 11:48:09 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=emersion.fr; s=protonmail2; t=1649418500; bh=Zvbi7xqEswNRrjsp8sgXVujH0Lr0d/k1PRut6FcweZY=; h=Date:To:From:Cc:Reply-To:Subject:Message-ID:In-Reply-To: References:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID; b=hemnCB5PgV6MjKUqiZcXyUtavYgatU3HjzR5zjUPE3u4KXYfkBfTlt8no33INNxWW KJRsLOwEe1yoJ+Uqp/C3IT4LCEEhVivfaLb4HC6qOw/2vfBQm8o7WPHmhQyNdMz1nq vEtpdnbFTrTpiC1ZW21UpBt8M1VMBr04UGxJrailoyJmbk6zVqUIl9ast2Ae+C9ftD xYeibHwc1dbSsi5HSPRz1lK65BJJLVmRzrUgVRqTtnqepmz+okiM+rCiwJp36Ei21/ Gsg9VN/SP0FqSxxoM5wndaCL9/2jEBfpVRrDft+Y3VO7+56GM5yXbZwb4Esb1SC5+d jpDph04eTdTDA== To: Bas Nieuwenhuizen From: Simon Ser Cc: Grigory Vasilyev , Rodrigo Siqueira , Melissa Wen , Alex Deucher , =?utf-8?Q?Christian_K=C3=B6nig?= , "Pan, Xinhui" , David Airlie , Daniel Vetter , =?utf-8?Q?Michel_D=C3=A4nzer?= , Evan Quan , Sean Paul , Qingqing Zhuo , amd-gfx mailing list , ML dri-devel , LKML Reply-To: Simon Ser Subject: Re: [PATCH] drm/amdgpu: Fix NULL pointer dereference Message-ID: In-Reply-To: References: <20220408092803.3188-1-h0tc0d3@gmail.com> <4o2YD5id7zhK5g__CUK3Yf-6Dj459XQ0qsydW6wKHdco3YYtl78BqGUfXvQ9UO0AZoAsMPfhFB0jw1BFldiFDcbZXmGgsobuAoTMWmoDqmE=@emersion.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED 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 On Friday, April 8th, 2022 at 13:28, Bas Nieuwenhuizen wrote: > On Fri, Apr 8, 2022 at 12:01 PM Simon Ser contact@emersion.fr wrote: > > > Is amdgpu_display_get_fb_info ever called with NULL tiling_flags/tmz_su= rface? > > If not, there's no point in adding NULL checks. > > It isn't called with NULL anywhere, the NULL checks that already exist > seem redundant. Grigory, would be be willing to submit a v2 which removes the unnecessary NULL checks?