Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 14 Feb 2018 21:39:10 +0000 (UTC)
From:      Oleksandr Tymoshenko <gonzo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r329280 - stable/11/sys/arm/arm
Message-ID:  <201802142139.w1ELdAHl042364@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: gonzo
Date: Wed Feb 14 21:39:10 2018
New Revision: 329280
URL: https://svnweb.freebsd.org/changeset/base/329280

Log:
  MFC r320387:
  
  [arm] Use correct index value when checking range validity
  
  Reviewed by:	andrew
  Differential Revision:	https://reviews.freebsd.org/D9145

Modified:
  stable/11/sys/arm/arm/gic.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/arm/arm/gic.c
==============================================================================
--- stable/11/sys/arm/arm/gic.c	Wed Feb 14 21:17:44 2018	(r329279)
+++ stable/11/sys/arm/arm/gic.c	Wed Feb 14 21:39:10 2018	(r329280)
@@ -1656,11 +1656,11 @@ arm_gicv2m_alloc_msi(device_t dev, device_t child, int
 				break;
 			}
 
-			KASSERT((psc->gic_irqs[irq].gi_flags & GI_FLAG_MSI)!= 0,
+			KASSERT((psc->gic_irqs[end_irq].gi_flags & GI_FLAG_MSI)!= 0,
 			    ("%s: Non-MSI interrupt found", __func__));
 
 			/* This is already used */
-			if ((psc->gic_irqs[irq].gi_flags & GI_FLAG_MSI_USED) ==
+			if ((psc->gic_irqs[end_irq].gi_flags & GI_FLAG_MSI_USED) ==
 			    GI_FLAG_MSI_USED) {
 				found = false;
 				break;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802142139.w1ELdAHl042364>