Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp21209053ybl; Sun, 5 Jan 2020 23:25:22 -0800 (PST) X-Google-Smtp-Source: APXvYqxvkNoSYzXMHQskShWM0FSgcbR9O5WX8345z4woROQ+dy5v5zoSAgauqFfsRgb80KjbRoI9 X-Received: by 2002:a9d:74c4:: with SMTP id a4mr29202223otl.119.1578295522559; Sun, 05 Jan 2020 23:25:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578295522; cv=none; d=google.com; s=arc-20160816; b=pbBqr0VG9YIfN/PLM/KesX+tmnYUN7PO4f4dB9RRGKAVX2mrzw9L3AQB1TnLvk9wvM VuXMktAwl+zc1Wny4fYY2/AKPjOfQ5x6Z30HzPxULwFKiyr0GQpcueAyiB0ZQPwjvtFF IZNuPUu7ESMD16L4w9Kx5+c7xKuCibSzBmtfeGu/ipy9NxGNB9zN7m3/Qr13KXHVHE6P vpy/mNGMzbDKBntb1+AGpEHAcyZ5D0fKm8vMqW+wfZIXxYd7y+vgpkbbgRF2iqbJJwAb kaN6ACQUZ8/pPt/FW5JHDwBZibpVR4IABurMZAQtZHtAG7n7A7NM/me3Dfc7XdPkR8vX K2lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=zs/OwLvCA6jS7TNxcQCit+/Ww+RcUnpu1UvuQF8dEtI=; b=hqCU54bj0rRgQk5bToL/83c38KU3AGIRbyJRXM+EgkSfB3NVVhSTGOc24V3pTO3Flj LVt3YKUWMtV+0mKIR+ZW1321dyhqdrYAqCAqHK/o5Kxk4XjLLUBauZ126qmwCwPOUoTW kdLohoMC394BHMH+S2/4NK64k2Ejq+C0ak0jJe8U++thXd7yRfrXohTskS1x53yo/xi3 k7kfkbuoyQOa50cUyBuZFCNiF8nZgp9hP5jd1J7nAdKP954GpIZ/ltutuljtNJNq/+yw fe/tf/KA3BOs80BEHi0TyqYz3KZYb9FgayWAh61WQOrF16vYF3dmA/CBEi4yB4mbx6kQ eYhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=ZkOI9NGA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y24si30630967oih.24.2020.01.05.23.25.10; Sun, 05 Jan 2020 23:25:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@embeddedor.com header.s=default header.b=ZkOI9NGA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726977AbgAFHXD (ORCPT + 99 others); Mon, 6 Jan 2020 02:23:03 -0500 Received: from gateway23.websitewelcome.com ([192.185.50.185]:21185 "EHLO gateway23.websitewelcome.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726668AbgAFHXC (ORCPT ); Mon, 6 Jan 2020 02:23:02 -0500 X-Greylist: delayed 1383 seconds by postgrey-1.27 at vger.kernel.org; Mon, 06 Jan 2020 02:23:02 EST Received: from cm12.websitewelcome.com (cm12.websitewelcome.com [100.42.49.8]) by gateway23.websitewelcome.com (Postfix) with ESMTP id AA62E12A0B for ; Mon, 6 Jan 2020 00:59:58 -0600 (CST) Received: from gator4166.hostgator.com ([108.167.133.22]) by cmsmtp with SMTP id oMMoiwwpfW4froMMoiDJop; Mon, 06 Jan 2020 00:59:58 -0600 X-Authority-Reason: nr=8 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=embeddedor.com; s=default; h=Content-Type:MIME-Version:Message-ID:Subject: Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zs/OwLvCA6jS7TNxcQCit+/Ww+RcUnpu1UvuQF8dEtI=; b=ZkOI9NGA+cKtzcVCyTqZlA4v1T JUellohSEt5/jPkTvYMDpkLNa8Urhq3Ee4eedihHLjg8J7Zyt2EeDR1KVuMV/yrpIXmB3LoQiBcdm l13JvB9K1HSYQ2IGK65CSUZIh/AKvGHPyfrmV4u9fInE1hX+WmjreyPTO7fDWffoe+YK8SV1J3L61 1VqeSxCtE2nkyogOqQiB2MH9gnd4RR/OCLVCXbi2h/7eT20Irt27yzgVM0+x3vbq1Ghrp6WGoD0X/ t0pDD70gMtXZhCSjAthlO4eSvQ+S98UeiCtkBiL2erb555K6PUrUCYfvDpJzY8L/7RIr27tJ6AlOj SzhXnCXg==; Received: from [189.152.215.240] (port=33838 helo=embeddedor) by gator4166.hostgator.com with esmtpa (Exim 4.92) (envelope-from ) id 1ioMMm-0014nS-Pl; Mon, 06 Jan 2020 00:59:57 -0600 Date: Mon, 6 Jan 2020 01:01:53 -0600 From: "Gustavo A. R. Silva" To: Jani Nikula , Joonas Lahtinen , Rodrigo Vivi , David Airlie , Daniel Vetter , Manasi Navare , Matt Roper Cc: intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" Subject: [PATCH][next] drm/i915/display: Fix inconsistent IS_ERR and PTR_ERR Message-ID: <20200106070152.GA13299@embeddedor> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.9.4 (2018-02-28) X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator4166.hostgator.com X-AntiAbuse: Original Domain - vger.kernel.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - embeddedor.com X-BWhitelist: no X-Source-IP: 189.152.215.240 X-Source-L: No X-Exim-ID: 1ioMMm-0014nS-Pl X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: (embeddedor) [189.152.215.240]:33838 X-Source-Auth: gustavo@embeddedor.com X-Email-Count: 10 X-Source-Cap: Z3V6aWRpbmU7Z3V6aWRpbmU7Z2F0b3I0MTY2Lmhvc3RnYXRvci5jb20= X-Local-Domain: yes Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix inconsistent IS_ERR and PTR_ERR in intel_modeset_all_tiles(). The proper pointer to be passed as argument is crtc_state. This bug was detected with the help of Coccinelle. Fixes: a603f5bd1691 ("drm/i915/dp: Make sure all tiled connectors get added to the state with full modeset") Signed-off-by: Gustavo A. R. Silva --- drivers/gpu/drm/i915/display/intel_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_display.c b/drivers/gpu/drm/i915/display/intel_display.c index da5266e76738..a96bee699a5e 100644 --- a/drivers/gpu/drm/i915/display/intel_display.c +++ b/drivers/gpu/drm/i915/display/intel_display.c @@ -14424,7 +14424,7 @@ intel_modeset_all_tiles(struct intel_atomic_state *state, int tile_grp_id) crtc_state = drm_atomic_get_crtc_state(&state->base, conn_state->crtc); if (IS_ERR(crtc_state)) { - ret = PTR_ERR(conn_state); + ret = PTR_ERR(crtc_state); break; } crtc_state->mode_changed = true; -- 2.23.0