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)
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-stable-10
To unsubscribe, send any mail to "[email protected]"

Reply via email to