Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.6.25-rc7 /lib/extable.c

Filename:/lib/extable.c
Lines Added:3
Lines Deleted:3
Also changed in: (Previous) 2.6.25-rc6  2.6.25-rc5  2.6.25-rc4  2.6.25-rc3  2.6.25-rc2  2.6.25-rc1 
(Following) 2.6.25-rc8  2.6.25-rc9  2.6.25 

Location
[  2.6.25-rc7
  [  lib
     o  extable.c

Patch

diff --git a/lib/extable.c b/lib/extable.c
index 463f456..179c087 100644
--- a/lib/extable.c
+++ b/lib/extable.c
@@ -57,10 +57,10 @@ search_extable(const struct exception_table_entry *first,
    while (first <= last) {
       const struct exception_table_entry *mid;
 
-      mid = (last - first) / 2 + first;
+      mid = ((last - first) >> 1) + first;
       /*
-       * careful, the distance between entries can be
-       * larger than 2GB:
+       * careful, the distance between value and insn
+       * can be larger than MAX_LONG:
        */
       if (mid->insn < value)
          first = mid + 1;


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.