projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c664f9
)
mm/backing-dev.c: fix percpu_counter_destroy call bug in bdi_init
author
Denis Cheng
<
[email protected]
>
Wed, 5 Dec 2007 07:45:07 +0000
(23:45 -0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 5 Dec 2007 17:21:18 +0000
(09:21 -0800)
this call should use the array index j, not i. But with this approach, just
one int i is enough, int j is not needed.
Signed-off-by: Denis Cheng <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/backing-dev.c
patch
|
blob
|
history
diff --git
a/mm/backing-dev.c
b/mm/backing-dev.c
index b0ceb29da4c7a9b8c230e1956e324b62b1905727..e8644b1e5527df1069f968d17d1893fa0dc3e5fa 100644
(file)
--- a/
mm/backing-dev.c
+++ b/
mm/backing-dev.c
@@
-7,7
+7,7
@@
int bdi_init(struct backing_dev_info *bdi)
{
- int i
, j
;
+ int i;
int err;
for (i = 0; i < NR_BDI_STAT_ITEMS; i++) {
@@
-21,7
+21,7
@@
int bdi_init(struct backing_dev_info *bdi)
if (err) {
err:
-
for (j = 0; j < i; j++
)
+
while (i--
)
percpu_counter_destroy(&bdi->bdi_stat[i]);
}