Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp657866pxv; Thu, 15 Jul 2021 12:41:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxVCah7+GffYqL3A5NiOJHGNkb/AejhYQk1TFNmHto2bINN7/w/rp4bW6Bvqng1iaOr9GQt X-Received: by 2002:a17:906:4551:: with SMTP id s17mr7094098ejq.26.1626378070127; Thu, 15 Jul 2021 12:41:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626378070; cv=none; d=google.com; s=arc-20160816; b=k3rTyJaxnmVYJHsRsF0mdOtZqbP96FTEKFw8eFYDONC+sCQfxJIA9O72SuWIST1I6T jv29IZRQI8N1loSCn8JeiS6vijr2M7lUOUuidMOCqXkei/EN4mhY2yuAj0j9sjEkC5v8 rTGdzYHzAojPzNU5wuq90PUVo3C9GMSWm4jQXWnWf92l5FZE2G9tmmdeZGRb6G1rkMgK 4/kS0I2r7Ej8qt7ta3DzhxDbNo/9clAzXGr5xI4LJIDu9ct08DnglFod9gHmtMU/xhCO ySMV1e3Im0oT5HSxWdHO3ONv8njx+OoMGc4SE/+5c4bvLKF0xZfnT3bZWl5yp44RsWNP aKAQ== 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=kGQY1V3P1JiunD+riZdrAAf1NiM5yP5SNDHYL4BCX/M=; b=B6EcdpQ/Eceh2nXNzgoeWF1kWjfsDWl9PDRalqKwsqYQ5F+xXXGoOR3FWd36u680tX tu23armCTUuNRy1maw5cU/ahRUik6m9uv8U5RySmBfLBVGWTR7KOmeastWzLO34t7XyY EaX9vo6w1+Ypy14Z9FUCKrB5b5bq4AGAKdy6nCxLqmGJoHF0Ax9Rph1RJalkfStsmeHe 8jo3xR8YkIg7bq2rj309VT5+rNh+esPKbrc2SCpn+Y68vIZmiDXdJed+p+U+Y0NYQEMG v8qO5PNVZa4plhMfaHmKBZ+tsGrpZ3beX65+R/6OuaYYpqDmwujzKdDcRkTEHwJSfNyC CKrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=D9c6voVC; 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 jx17si4579041ejb.15.2021.07.15.12.40.47; Thu, 15 Jul 2021 12:41:10 -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=D9c6voVC; 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 S238233AbhGOTmq (ORCPT + 99 others); Thu, 15 Jul 2021 15:42:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:51470 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244676AbhGOTPC (ORCPT ); Thu, 15 Jul 2021 15:15:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 823E761419; Thu, 15 Jul 2021 19:11:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626376267; bh=Jj+qxO9uQu4VlJFCOItiFlKT7Z1OzVTswRFWi2+JbfI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D9c6voVCFEJAsehhIasSa5BAgObBza+9GEK4cEpac/S1db84OAgPVUDfFvr4Wl39G rx0Z4RGrOBTNEiNHgpFxSAyTyNwI50AYTRtYN0XojltT55nO8XDGIuOOG/xMNTWO7Z mfexnSZ0sc73gKeMtBuhCfNRP5o8FghqTHzks6f0= 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.13 197/266] drm/amd/display: fix incorrrect valid irq check Date: Thu, 15 Jul 2021 20:39:12 +0200 Message-Id: <20210715182645.285452979@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182613.933608881@linuxfoundation.org> References: <20210715182613.933608881@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 @@ -165,7 +165,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 \