Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp633004pxv; Thu, 15 Jul 2021 12:02:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz774p7TnCZMCDEQiJL9GjVSuxaek6DbN1qj79Z93GReOiUz/bixPFJwwK+r0Er2KX8Zsp2 X-Received: by 2002:a02:a98d:: with SMTP id q13mr5307207jam.124.1626375757231; Thu, 15 Jul 2021 12:02:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626375757; cv=none; d=google.com; s=arc-20160816; b=EI56IGU06YbaAJEeeHyPYijYMT3TO3vDiLYqinSbDuW+AeWNpG67+Vg1UyiY74UvF/ Ns+m6WS18eKt3cY+4D7kqruhHdzvK0a8TjU3Kvoo57yWHt1+p25J7joPRCl+681QL4aa 9lS5LMPEnrvjZ4pA4tzIDc8z1UHvTt+34C0+xUNrkPkJCFMcyJurFCNfKVLtz6psGRWE bv2W/PqhBz+Eny+rUg642XBg9tkCH+7FE+12rAmkxSgNZ/MgJUQcL2Hkn+HQoX8K1XFv NiTSU/jxCN7kM/LqyGXo7EbS0qbIT11/Di4hOXeaqeyfTetlEkpIXO0F7DM+6V8YBWKE 3Q2Q== 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=hENHXJUTBcC0K61gdy1MP1nQqBvnp8JAd/sIu4MShgg=; b=XQBHu6cQ6YzUATcy/IS5C4eoVt+AQj3SZE3N+ZuMYz+AoOnN1MTzoLrHGqanDV1lk6 GXWS1yD/yeky01nEbQPXawMf3KoOHnRMYSphGSfUQpc7wqEl9F4iE48UqsII4Izmwu6/ M3o64gQGmYpYd5WTqIcphyr/nwQmusaV5Us/MEv+5y6jlq1KgkhuVSqOD8crymPnySkE mXquzIuD44gH/LuDPw1dxhUXjE4F/foULjsUnSrTSgmqtiuUdwQOYodqU929zk9shdUd /Gz/k7TDPDOLabNEiSAFYCTgxrDwV4+ek1jDik9F5uCZW53dNAW5SXo04Y3Od0uvA4yX pqRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=SHYIOc+v; 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 z15si157913ilh.22.2021.07.15.12.02.24; Thu, 15 Jul 2021 12:02:37 -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=SHYIOc+v; 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 S241745AbhGOTEH (ORCPT + 99 others); Thu, 15 Jul 2021 15:04:07 -0400 Received: from mail.kernel.org ([198.145.29.99]:58428 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241568AbhGOSy3 (ORCPT ); Thu, 15 Jul 2021 14:54:29 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9AAFE613CA; Thu, 15 Jul 2021 18:51:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1626375095; bh=Ry6vRimaxT1PY/pQesSq6oEjfin/Mo0V5go0WQ8VCIo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SHYIOc+v03cWLQGgBzEO5VeMODDCIUTEVeMO41xVqo4l5vezr3a57F/8b+jB9V0jD XDgLC48xQwZZkW0nCVl51qcXWlOooapYWOwu/INlbuRYZ+07uM935zY2NLQ2iPkmv2 yvi9Ei7AJiKb4QfHQXN5oA2h6iMhyogFYtRomwwk= 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.10 158/215] drm/amd/display: fix incorrrect valid irq check Date: Thu, 15 Jul 2021 20:38:50 +0200 Message-Id: <20210715182627.450313154@linuxfoundation.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20210715182558.381078833@linuxfoundation.org> References: <20210715182558.381078833@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 @@ -163,7 +163,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 \