Received: by 2002:a05:6a10:144:0:0:0:0 with SMTP id 4csp180076pxw; Fri, 8 Apr 2022 04:54:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwD34uRs+J6dXc46yaXSfnJemDTEvPcYTxEf3hu3X71R1kl680tnTmrW3e55PoPAiQCtfpy X-Received: by 2002:a05:6402:1255:b0:419:3808:3d98 with SMTP id l21-20020a056402125500b0041938083d98mr18943374edw.134.1649418847231; Fri, 08 Apr 2022 04:54:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649418847; cv=none; d=google.com; s=arc-20160816; b=IyOWKzMYhvDkYPWKH83pt8amjyLbFu/JCrlqGAbxRRQKklCjx3RmgETxZR3oMMLy1v 43wliPRsyOo1jx+m8s8ki9Xhg4fC4UJ031sQsDKH+P+HpsXGnEo5KahxecKr5rRe1BxZ IPrpz8Q/NqTVjrdVqywxP0PTt0w9TfKdF05Px3AsEMEkrUZqh7HURJoxBf6czCSHwy31 Tt6d5ADtIMeDZSBhmK5qN3btGBcjgAbH/sTcQXCVpI/7ULUS8cFU+wXfbeyi8qRFc80m nSTv8SxFKcP3kLjYaph36U8CpvD7Hj3JqvBSLtub4r/7uRcXEZTKIRfB9tjPhoQHRljD Dq8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=Ixi8kZe3SkhTQxe+wXeMeIxrtbGzlOxLmNLbF+cZC8M=; b=LhYC6gs68wLnzHfLV5+LwbkOMun/94nyfeec4HK7bYYD+fRGZFWe8G+ZFXK4QuFGPa ke271sXaGOTF72lgg0Y4PEF7l4proyqGhXOgvg10Vueu2rJnifXd8TvQBtJH5sbEeZV5 BXaQrQVf2i2EdOAGs23NWeQ9rkKpct5lxoMFhDEfW5QqtM82i7lV+XafTv2aweOPpEiB J79B5f2fnSdRJS2pE+xAuz4FzXs5kPAx2/iOu9cdHFgpo429vfGNlPY+Yon69dwZWNP1 aOEbMuXR/WZMRLb7Ef6iuVxUnHZtMqaQU4sZ3k6lwYY7GYZ3SOTIZ3h7+t/e4QCCisEY LaXQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@basnieuwenhuizen.nl header.s=google header.b="JC/JLxvd"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v14-20020a50d58e000000b004190cf4164asi773987edi.132.2022.04.08.04.52.54; Fri, 08 Apr 2022 04:54:07 -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=@basnieuwenhuizen.nl header.s=google header.b="JC/JLxvd"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232398AbiDHLae (ORCPT + 99 others); Fri, 8 Apr 2022 07:30:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44406 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229509AbiDHLac (ORCPT ); Fri, 8 Apr 2022 07:30:32 -0400 Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A9DCF99EE4 for ; Fri, 8 Apr 2022 04:28:27 -0700 (PDT) Received: by mail-yb1-xb2a.google.com with SMTP id e71so6297ybf.8 for ; Fri, 08 Apr 2022 04:28:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=basnieuwenhuizen.nl; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Ixi8kZe3SkhTQxe+wXeMeIxrtbGzlOxLmNLbF+cZC8M=; b=JC/JLxvdznj2flCGhE/ltsXvXoWICpPPcZVAc4nW/hIHqnRvzJNB0Djd9odaS3YkfV s7aspmSbK8nu1lhQj0rQcmzyNOBf11KgGcACQNMYUITCRoOPSaTHtBKBtYiSppKmbIHg 79M4wAqawm6e81OjbTeIDHjoSSDr5I1WSqTQlKJOS20EBWB7SF2O5DSc6brgdosF2zkB VbrGxDeYyx7ZWsOy1ZBfoJCiqP8pOC4IEHZhP1jEO9lc6jF5xxO0NeNu7+29zOtTl2Sx RJcldomKk4zPxcBPtRPr9CH+LPdC6JbNgeblwnmgGh/LUavVVJLGHVJfFLN8kqTzMdaK sGAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Ixi8kZe3SkhTQxe+wXeMeIxrtbGzlOxLmNLbF+cZC8M=; b=WbXclc0LCSwLEDMzsv1ow2vKpxYaFYFeFT7lCGU5swUpJcI3Svf3hA2fnS8jhhkqQg KVADEWCEiSd6ZdftqDnr1jzVMGdRIGlRH1xkXk1JgdkC68aSAuyupqVmuaueZ/eCuHlp edTx+bG577RbVTntwRey8A+8DWSxJEM0GIhd1siN3O65Mrp38A2flJK6qr7L8FJKEiLH KoGQn4Dt11qotF8KG1/E6qaRhWIdRLt603NmQY4YIcjgXuGCPssIwk8taqEywtZ3jsLT 1yJUv+nSsxk5lHMBgMUYkuKPVSdn+dVcMvzwxVrTUL4t4m5A/zUgFFb3RNFhe6+yrVrr nlIg== X-Gm-Message-State: AOAM53045VouRWN8wczob+uYT/3IcavYlXSBiOkH1yqrd/Uy4pHSx4VM AG2jvLWYPc8LrU0DxYjRfDOVU/tL5V1BUU+YzhaNew== X-Received: by 2002:a25:1409:0:b0:63e:4e0c:9158 with SMTP id 9-20020a251409000000b0063e4e0c9158mr6468964ybu.555.1649417306934; Fri, 08 Apr 2022 04:28:26 -0700 (PDT) MIME-Version: 1.0 References: <20220408092803.3188-1-h0tc0d3@gmail.com> <4o2YD5id7zhK5g__CUK3Yf-6Dj459XQ0qsydW6wKHdco3YYtl78BqGUfXvQ9UO0AZoAsMPfhFB0jw1BFldiFDcbZXmGgsobuAoTMWmoDqmE=@emersion.fr> In-Reply-To: <4o2YD5id7zhK5g__CUK3Yf-6Dj459XQ0qsydW6wKHdco3YYtl78BqGUfXvQ9UO0AZoAsMPfhFB0jw1BFldiFDcbZXmGgsobuAoTMWmoDqmE=@emersion.fr> From: Bas Nieuwenhuizen Date: Fri, 8 Apr 2022 13:28:25 +0200 Message-ID: Subject: Re: [PATCH] drm/amdgpu: Fix NULL pointer dereference To: 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 Content-Type: text/plain; charset="UTF-8" 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_DNSWL_NONE, 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 Fri, Apr 8, 2022 at 12:01 PM Simon Ser wrote: > > Is amdgpu_display_get_fb_info ever called with NULL tiling_flags/tmz_surface? > 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.