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:
00b3e0a
)
sh: Fix access to released memory in clk_debugfs_register_one()
author
Marek Skuczynski
<
[email protected]
>
Sat, 30 Jan 2010 21:29:32 +0000
(22:29 +0100)
committer
Paul Mundt
<
[email protected]
>
Tue, 2 Feb 2010 02:32:23 +0000
(11:32 +0900)
Signed-off-by: Marek Skuczynski <
[email protected]
>
Signed-off-by: Paul Mundt <
[email protected]
>
arch/sh/kernel/cpu/clock.c
patch
|
blob
|
history
diff --git
a/arch/sh/kernel/cpu/clock.c
b/arch/sh/kernel/cpu/clock.c
index f3a46be2ae81c169ffebbd486fec123b643f9118..83da5debeedff422f4683fdbb0af5eda9a9bab5f 100644
(file)
--- a/
arch/sh/kernel/cpu/clock.c
+++ b/
arch/sh/kernel/cpu/clock.c
@@
-598,7
+598,7
@@
static struct dentry *clk_debugfs_root;
static int clk_debugfs_register_one(struct clk *c)
{
int err;
- struct dentry *d, *child;
+ struct dentry *d, *child
, *child_tmp
;
struct clk *pa = c->parent;
char s[255];
char *p = s;
@@
-630,7
+630,7
@@
static int clk_debugfs_register_one(struct clk *c)
err_out:
d = c->dentry;
- list_for_each_entry
(child
, &d->d_subdirs, d_u.d_child)
+ list_for_each_entry
_safe(child, child_tmp
, &d->d_subdirs, d_u.d_child)
debugfs_remove(child);
debugfs_remove(c->dentry);
return err;