Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp634096ybl; Wed, 8 Jan 2020 03:21:29 -0800 (PST) X-Google-Smtp-Source: APXvYqxr/MylqbhQSeYxqkbku0zwWIgJOCp9O+E8rZ0mlytJ4fNhNQIShr/iYvoOL3ixkEpscnch X-Received: by 2002:a9d:6a41:: with SMTP id h1mr3531934otn.279.1578482488955; Wed, 08 Jan 2020 03:21:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578482488; cv=none; d=google.com; s=arc-20160816; b=UZdBJEHkkMWUO6Cbv8UXgEMfw5z/7r1MtEnWDXgMbZn7BjQbOZqJpSEkZ+IaGIlWxO PCKqM8nHXjNsl9IAAYunPgQ3GI/sT8i5i1MGGDd69F8syvQDH62V2f1E6DLpmP2gLpiN 8C7vWAcvYpMi2Zqsu4wwWO2/soDY3zkqWTNL2SfcF639e7gAgoqImxXl31/14GZxpyLq HrvhnObueCTsnVgYsYmWzU2HjigPfl0sdtvnzctB+ovcwd4lmv7gIAkGwxV54FarJpVa lZwEBadIDZ4y1l2XphWcxaFbdaal3prHPnAl5FJKH5TwSwdnQWOx5jdSHeL1R+hFsIHn GNGw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from; bh=TpruhyN7IK20KQUtFuN9H+I1yc/o/q0p5EW1GJ7L7W8=; b=bRT8/5iVut7ds7F2D5KGKw8C/9CWg+P7XL0XW8Pkc9vPVXWmxE9OoaYMwMMKgGG9AN d5J1mqY9d4jFxdxOL7mzQmnT6z7xcpCDSEX+9XA0LClVFPDeWsqHtYGKhahulKsE8TT2 cS778o3JmBL7H+64/yy088+mQwljVvUpgFke5i9SfvCGVG2YP0Y+sqR6qdMmHx8Aqxn3 B+nv5xzF1rqSLjxTevU2WNIXblgdUi0ximj+oBmBbaaSABMyk89WJS01Yrf0AqxN0mk4 AqX7xUa4RRSS1PyPL4M8E6M2Ef+egnzv7FWwit7VqV/zPDdcAN98S9bzNN6OiyvP7nxn x7rA== ARC-Authentication-Results: i=1; mx.google.com; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i6si1572174oth.182.2020.01.08.03.21.16; Wed, 08 Jan 2020 03:21:28 -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; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728029AbgAHLGw (ORCPT + 99 others); Wed, 8 Jan 2020 06:06:52 -0500 Received: from mga12.intel.com ([192.55.52.136]:20155 "EHLO mga12.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726276AbgAHLGw (ORCPT ); Wed, 8 Jan 2020 06:06:52 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 03:06:51 -0800 X-IronPort-AV: E=Sophos;i="5.69,409,1571727600"; d="scan'208";a="215920519" Received: from jnikula-mobl3.fi.intel.com (HELO localhost) ([10.237.66.161]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 08 Jan 2020 03:06:48 -0800 From: Jani Nikula To: "Gustavo A. R. Silva" , 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: Re: [PATCH][next] drm/i915/display: Fix inconsistent IS_ERR and PTR_ERR In-Reply-To: <20200106070152.GA13299@embeddedor> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <20200106070152.GA13299@embeddedor> Date: Wed, 08 Jan 2020 13:06:45 +0200 Message-ID: <87pnfuqkai.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 06 Jan 2020, "Gustavo A. R. Silva" wrote: > 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. Thanks, already fixed by Dan in commit 953cac3ec55f ("drm/i915: fix an error code in intel_modeset_all_tiles()"). BR, Jani. > > 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; -- Jani Nikula, Intel Open Source Graphics Center