Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Jun 2015 22:52:12 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r284530 - stable/10/sys/ofed/include/linux
Message-ID:  <201506172252.t5HMqCGk085172@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Wed Jun 17 22:52:12 2015
New Revision: 284530
URL: https://svnweb.freebsd.org/changeset/base/284530

Log:
  MFC r277229:
  
  Use parentheses instead of close proximity to ensure layer + 1 is evaluated
  before the rest of the expression.

Modified:
  stable/10/sys/ofed/include/linux/linux_idr.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/ofed/include/linux/linux_idr.c
==============================================================================
--- stable/10/sys/ofed/include/linux/linux_idr.c	Wed Jun 17 22:44:27 2015	(r284529)
+++ stable/10/sys/ofed/include/linux/linux_idr.c	Wed Jun 17 22:52:12 2015	(r284530)
@@ -418,7 +418,7 @@ restart:
 		 * to be rare.
 		 */
 		if (idx == IDR_SIZE) {
-			starting_id = id + (1 << (layer+1 * IDR_BITS));
+			starting_id = id + (1 << ((layer + 1) * IDR_BITS));
 			goto restart;
 		}
 		if (idx > sidx)



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