Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp710773pxv; Thu, 15 Jul 2021 14:08:21 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw6XyCAFex6XTNYeQY8vkmzjy5zI4C3MV8rP9Witczp2c0fkOHANhaiZMVumZ2t1hDn2WIA X-Received: by 2002:a05:6402:4c5:: with SMTP id n5mr9615199edw.322.1626383300783; Thu, 15 Jul 2021 14:08:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626383300; cv=none; d=google.com; s=arc-20160816; b=wY/KlwqH3Xhf7sva4IOSRaoAykXNg591tOWJFoA7H3pgpFCFi5IqJ9dwdc58R6fC+b fMf16/HeEQLUBBEk44rH0CKga9Iqv3EeucjVE9+JrUFJv4U/PYDkaancJEk1C73eHn/d 33ybXSIHhMpmqX2iU/Fqivhkabs6RD6EjL1ql+AmEfCTmQNMnKSIx3wqodi6NLmSXmlQ jnMF47kN8sVXWe00cVR1vVU5cmcu1FEsxz2nyirwos8BJVwaCYm84KHu62GYtmy54uND RvdQVtpv1rvzFwg2lukLYPbxQYfJlTmXJAIevqTun1ZlkWuQxwhOxGPLVFce7boogCth BimQ== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=9eM9ZlgnwI9e3UdbVhPAvVoy5zgiIdOC7abUyej001c=; b=WO7pRrdJLRIfw73Dl28xx80XJIWCq0ab6VPSdIczoFTj7OYoVKRDS9xJ8nEw1a+JfJ NzK/EIeDd5ErD57JRyq41zXKsNN4LgOOpkelKBx9AF5dEWnccfZyDYUnQFPEXC0tr2kB lG7Hq4xMEAv6DiZJDbZZTpJLftXIulYhx7YBt6RSCyB489VwzyPTAep1XCTdPO6hLT1z 7pg76yOBqi1EtCEFnknSsO3KHSmi/yGsMZ0QqJTpHfNRdIE9HraoWCL6RiTujCcoLIOZ MimhANYCNmM/UYeb2O3pmhCLPxINQ7Il6mej5tF6XWi/GdBhbSgA3C4BKdr3Pc+5Ulzn YH6A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L0WGGH4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id hp26si7531645ejc.565.2021.07.15.14.07.55; Thu, 15 Jul 2021 14:08:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=L0WGGH4T; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245423AbhGOTTn (ORCPT + 99 others); Thu, 15 Jul 2021 15:19:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:39762 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239944AbhGOTEk (ORCPT ); Thu, 15 Jul 2021 15:04:40 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id AC7CE61407; Thu, 15 Jul 2021 19:00:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375638; bh=MpsPqZPY3nj0dmG8wFe5/+5BkmtWkNH1N3/OHs3tWxk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=L0WGGH4T57O7dETgH8EN8aIDFxnUvwYqjwnmifDq7w8tAHMIOE+PIMIK8LLV4Z4tk 9+WbUv55yTk5OcEHmK4/Q96SreK5tZ0mVCamym9Yng/O8tYnoM4cAIfmLqL1utOZR6 EuBgtwP3eVjm6QvvVSFI0ieh3sjdqNah2dyE2GEQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Guchun Chen , Harry Wentland , Alex Deucher , Evan Quan Subject: [PATCH 5.12 173/242] drm/amd/display: fix incorrrect valid irq check Date: Thu, 15 Jul 2021 20:38:55 +0200 Message-Id: <20210715182623.679710836@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182551.731989182@linuxfoundation.org> References: <20210715182551.731989182@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Guchun Chen commit e38ca7e422791a4d1c01e56dbf7f9982db0ed365 upstream. valid DAL irq should be < DAL_IRQ_SOURCES_NUMBER. Signed-off-by: Guchun Chen Reviewed-and-tested-by: Evan Quan Reviewed-by: Harry Wentland Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org Signed-off-by: Greg Kroah-Hartman --- drivers/gpu/drm/amd/display/dc/irq_types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/gpu/drm/amd/display/dc/irq_types.h +++ b/drivers/gpu/drm/amd/display/dc/irq_types.h @@ -164,7 +164,7 @@ enum irq_type }; #define DAL_VALID_IRQ_SRC_NUM(src) \ - ((src) <= DAL_IRQ_SOURCES_NUMBER && (src) > DC_IRQ_SOURCE_INVALID) + ((src) < DAL_IRQ_SOURCES_NUMBER && (src) > DC_IRQ_SOURCE_INVALID) /* Number of Page Flip IRQ Sources. */ #define DAL_PFLIP_IRQ_SRC_NUM \