From patchwork Wed Dec 11 09:56:50 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Karas X-Patchwork-Id: 13903282 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D588FE7717D for ; Wed, 11 Dec 2024 09:57:47 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 7F67F10EAE5; Wed, 11 Dec 2024 09:57:47 +0000 (UTC) Authentication-Results: gabe.freedesktop.org; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.b="UtfXx800"; dkim-atps=neutral Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.18]) by gabe.freedesktop.org (Postfix) with ESMTPS id A0E6510EAE5 for ; Wed, 11 Dec 2024 09:57:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1733911066; x=1765447066; h=date:from:to:cc:subject:message-id:mime-version; bh=TLYfhAPYkT7gD4aiG0c+8DYkjoJIZCV3wmeLxoSSJnU=; b=UtfXx800Jj5WrD7J6u+Ld5IT3xRUWyu5UDSAfCgaL2zleoujd9RDsH3a Yls7pePsZuGwKg8qZuAA3PGx5V91r86ncURV/n3AeDWO3Wo7xmyUv7O+d HhtsqpR67+RlN37WUKRftje8B6nRItPNmbzqAwcEr5h5mbd5ms0Wa3ZZu SYurJ1lijs8xaa9nZeL2hB4Z4/QBbeM7Jr4xlN+7Dn5UOdO2Iy6AAKhLQ GHGbQqDbialW9m53vw0kpRl55/9VciWIHco+orTwWFq9/RHY/M4Ah6ewH IaNqZgIFDWKe+ISQDYHqeK8JSQXUbJmAhFlZw7VjjZfACHqba93BluCUf w==; X-CSE-ConnectionGUID: NdMzDewpQ3mV2CGehdKOOw== X-CSE-MsgGUID: F2gIjU1iSmiRvW1S7tBCEg== X-IronPort-AV: E=McAfee;i="6700,10204,11282"; a="34423671" X-IronPort-AV: E=Sophos;i="6.12,225,1728975600"; d="scan'208";a="34423671" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orvoesa110.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2024 01:57:46 -0800 X-CSE-ConnectionGUID: QcV6CRJ5S62ENutGiu6a+g== X-CSE-MsgGUID: qO2B/dMoTVy+xUUads6KcQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,225,1728975600"; d="scan'208";a="126579557" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orviesa002.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 11 Dec 2024 01:57:46 -0800 Received: from orsmsx601.amr.corp.intel.com (10.22.229.14) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 11 Dec 2024 01:57:45 -0800 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39 via Frontend Transport; Wed, 11 Dec 2024 01:57:45 -0800 Received: from NAM02-BN1-obe.outbound.protection.outlook.com (104.47.51.48) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.39; Wed, 11 Dec 2024 01:57:44 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=eV046lz69hcJRUiXnHmFD5e3No7/vo7phkz09TjCrbRnXgxEm5X70AA//Ygm+5ldYhLz17QL0x1J3cJQPJz2c+ljLvQlBQyTJz5n2fkQd/cAVNMfFA00lYRa56V9j1WX9AjHaEauIXPDS1FnVsUQ2OYrajQUmrHqU339xpeWfvSWmhCT0Ord9G1WAGDiGdUiAOWAh28+lExHROxaiIQiYlrrtqfZnTVllYjLxy3YFSDGh1/UxRXNWScD2krLQOUHzQpSPZyef9BRzqFMAzzZ1oynl35ejDL1NXC7N7T+DHmorWsUkZvr7OvWmOozLfxacxSOCUv89tIdRVO99Kpw4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tF+Vi6tqTO8wkt4QbqT2EgkOK8+xVHRxasF6YZSQ8DE=; b=RLNJys/B5Dxbj5UrFyDptBjMNdgUz2UcKzT5YNev28RvsXrMFqsMsnCSNNci8oztjD2Z40pIz7U22fnBEoaJ8zQrQYKHQ/eI7IDmPuZqPb98SwM3MQGQj56YM4E9VLsplNus+aP37s9nYT0kj8tSONGPCJewxzIxq6BwJheaU6bK7ATFXvgW6KHzVT5tVecK0w0auT0jkkBu/TTe+keCDWv6S8ybYyxSz59sqzWApW2n9AvuVJjz/RcgeAkzixRCtY6bOeamS2OMbBnOyNPsWxtyrqniqyuS+8ZBId9ok6zoQQ3fdFPUVwpbcGZ5hGJIA2g5WywGevOejeo0s0rTOw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; Received: from CO1PR11MB5057.namprd11.prod.outlook.com (2603:10b6:303:6c::15) by CH3PR11MB8188.namprd11.prod.outlook.com (2603:10b6:610:15e::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.15; Wed, 11 Dec 2024 09:57:01 +0000 Received: from CO1PR11MB5057.namprd11.prod.outlook.com ([fe80::4610:6d6c:9af6:2548]) by CO1PR11MB5057.namprd11.prod.outlook.com ([fe80::4610:6d6c:9af6:2548%7]) with mapi id 15.20.8230.016; Wed, 11 Dec 2024 09:57:00 +0000 Date: Wed, 11 Dec 2024 09:56:50 +0000 From: Krzysztof Karas To: CC: Jani Nikula , Rodrigo Vivi Subject: [PATCH] drm/i915/display: use IS_ERR_OR_NULL macro on DP tunnel mgr creation failure Message-ID: "Organization: Intel Technology Poland sp. z o.o. - ul. Slowackiego 173, 80-298 Gdansk - KRS 101882 - NIP 957-07-52-316" Content-Disposition: inline X-ClientProxiedBy: DUZPR01CA0230.eurprd01.prod.exchangelabs.com (2603:10a6:10:4b4::7) To CO1PR11MB5057.namprd11.prod.outlook.com (2603:10b6:303:6c::15) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO1PR11MB5057:EE_|CH3PR11MB8188:EE_ X-MS-Office365-Filtering-Correlation-Id: eee255e0-610f-42c4-aed6-08dd19ca283f X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|1800799024|366016; X-Microsoft-Antispam-Message-Info: =?utf-8?q?3vtvfRm18/ayhpdQjGlimKSjMBXPeT6?= =?utf-8?q?IzwLrbAzm5uigFZ0ErG3KaMXFdYSQH8CFbdaquTAEIsK+t6raEjJunsCLgf5Bk6Z2?= =?utf-8?q?oOzsRXAYo9kVN0C12Uu0wAIoDanuViUzL8cEIUzZNVl8/ppAj3ionwjpgh4rykpIF?= =?utf-8?q?duzEN225PAnbdlueVO7ZUQIjFZuFbCva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kozq3NDju54sVBAtBDzuV4n6N?= =?utf-8?q?CfmtUCK1Z3hBF9mxmUZ2x73A/PlK4abGQwl6Ur3O0OOtHBY/Sn8JRwAvRQmdfTGXc?= =?utf-8?q?ORsSPuuRn0BfWf5PtzSpCBy8nJNp3y4iZiAT15GlsmRsfrj6YxSiPzP4CGH9iKbm8?= =?utf-8?q?PgxwmK+JnXEs1McB1Ai33jBI56UZjQt3xhsAdzsM4iD0I7Jo1cX+YIf+4VzOcKHCD?= =?utf-8?q?Eq4enq4OE41VKwjCnHQskEFnNjD0OdV8yUQ=3D=3D?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:CO1PR11MB5057.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(376014)(1800799024)(366016); DIR:OUT; SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?71Yv9MQw8XwXMQ8lR1nx8I0nnP87?= =?utf-8?q?+1K3NOsbcREI/4JVvWAjbNEFO5U3Y745et6CTtLlUUlgC2X1G5lKKmbSy+fYNaDva?= =?utf-8?q?yuWBuX3oe+S+YIx0DYrXXMbn+2LZCx4mLk05qLdbTqPIHGwKY5oTTfUX1OCWvS9xq?= =?utf-8?q?gT20xvHFIaHXoiq9S3ulOH2HsTwbZPLVjG1It6usIJewdJRfgzgihtgivb49g6XH7?= =?utf-8?q?ShFjGNNSXLyBaWDp008bpHm02LTXoDc1kbjctpegIB65q8juDXhI4d6GGiyKY/7++?= =?utf-8?q?ZbGQFZhd3/2hTMYZ2NhgtZTwgCpl/zq/xGWnJV6oTMrynnpTnnx1TeJOPp3f7oVzb?= =?utf-8?q?6Y7+wZIpbMw7letsWNr9IqVozxxNSbjNKC41dC0r3OiXxR7PV4JwuMsPjR/lk4buN?= =?utf-8?q?DD2jBuRQ6OClx5Ii8YvUiXpPkeHzMNGnB2Y6z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UlJ6EzJe4dlWNd0Lg/mvk3HRDjmF3fC?= =?utf-8?q?SeYn65OqCMahGNyy84G2gNkgPYHgWiBIX2XQpY2QAfo9PqySt7ZmchXO14Fr7znmE?= =?utf-8?q?UfLLAZNx8OidFVuK6euVHm/d+aV8kJErJ6yITVwRbUBPo7RmjX6q05493wI2GohIX?= =?utf-8?q?DldZk2TT9u9NBL6O2Kl6qI824j5k/xcchQfpFcQrFWokAi6OmanfzZUbjLN8duLHU?= =?utf-8?q?Z3Apx334YrVtV5MKa6Z74QdGXVMC+Iup7w=3D=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: eee255e0-610f-42c4-aed6-08dd19ca283f X-MS-Exchange-CrossTenant-AuthSource: CO1PR11MB5057.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Dec 2024 09:57:00.7438 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: DRkpKBqWwi93Tg0AtybhtMuYAOY9WKdq3cLayr2jMOUNZ+K89lvOQHfRL9w3g3UgK6x2EHwb4sXefUVML7ppVrkmL7xX11J1dicOjd4t7qY= X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH3PR11MB8188 X-OriginatorOrg: intel.com X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: intel-gfx-bounces@lists.freedesktop.org Sender: "Intel-gfx" drm_dp_tunnel_mgr_create() may return NULL on failure, which will not be caught via IS_ERR(), so replace it with IS_ERR_OR_NULL() macro. Signed-off-by: Krzysztof Karas --- drivers/gpu/drm/i915/display/intel_dp_tunnel.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/display/intel_dp_tunnel.c b/drivers/gpu/drm/i915/display/intel_dp_tunnel.c index 94198bc04939..6c960416f776 100644 --- a/drivers/gpu/drm/i915/display/intel_dp_tunnel.c +++ b/drivers/gpu/drm/i915/display/intel_dp_tunnel.c @@ -793,7 +793,7 @@ int intel_dp_tunnel_mgr_init(struct intel_display *display) drm_connector_list_iter_end(&connector_list_iter); tunnel_mgr = drm_dp_tunnel_mgr_create(display->drm, dp_connectors); - if (IS_ERR(tunnel_mgr)) + if (IS_ERR_OR_NULL(tunnel_mgr)) return PTR_ERR(tunnel_mgr); display->dp_tunnel_mgr = tunnel_mgr;