git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
md: only count actual openers as access which prevent a 'stop'
[pandora-kernel.git]
/
lib
/
extable.c
diff --git
a/lib/extable.c
b/lib/extable.c
index
463f456
..
179c087
100644
(file)
--- 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;
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;
*/
if (mid->insn < value)
first = mid + 1;