projects
/
platform
/
adaptation
/
renesas_rcar
/
renesas_kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cab49bc
)
m68k/amiga: Chip RAM - Use resource_size() to fix off-by-one error
author
Geert Uytterhoeven
<geert@linux-m68k.org>
Wed, 27 Apr 2011 08:28:19 +0000
(10:28 +0200)
committer
Geert Uytterhoeven
<geert@linux-m68k.org>
Sat, 30 Jul 2011 19:21:38 +0000
(21:21 +0200)
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/amiga/chipram.c
patch
|
blob
|
history
diff --git
a/arch/m68k/amiga/chipram.c
b/arch/m68k/amiga/chipram.c
index
c3fe451
..
cfd3b7a
100644
(file)
--- a/
arch/m68k/amiga/chipram.c
+++ b/
arch/m68k/amiga/chipram.c
@@
-100,7
+100,7
@@
void amiga_chip_free(void *ptr)
if (res->start != start)
continue;
*p = res->sibling;
- size = res
->end-start
;
+ size = res
ource_size(res)
;
pr_debug("amiga_chip_free: free %lu bytes at %p\n", size, ptr);
atomic_add(size, &chipavail);
kfree(res);