projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
tile: fix a -Wframe-larger-than warning
[cascardo/linux.git]
/
drivers
/
of
/
of_reserved_mem.c
diff --git
a/drivers/of/of_reserved_mem.c
b/drivers/of/of_reserved_mem.c
index
be77e75
..
1a3556a
100644
(file)
--- a/
drivers/of/of_reserved_mem.c
+++ b/
drivers/of/of_reserved_mem.c
@@
-206,7
+206,13
@@
static int __init __rmem_cmp(const void *a, const void *b)
{
const struct reserved_mem *ra = a, *rb = b;
- return ra->base - rb->base;
+ if (ra->base < rb->base)
+ return -1;
+
+ if (ra->base > rb->base)
+ return 1;
+
+ return 0;
}
static void __init __rmem_check_for_overlap(void)