aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sh/kernel/cpu/clock.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-02-02 12:47:51 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2010-02-02 12:47:51 -0800
commit7fbcca25c0bf8679a751034f65428ff6291cd4ca (patch)
treea6a8ad40e72bb8a4b679c761f1cee3480a264e51 /arch/sh/kernel/cpu/clock.c
parente770a0f1154193ca6b6e720a86aeaa2edc9261c6 (diff)
parentbc10e875d4aeaa93a0d418d8b4346b72f5067ea0 (diff)
downloadkernel_samsung_smdk4412-7fbcca25c0bf8679a751034f65428ff6291cd4ca.zip
kernel_samsung_smdk4412-7fbcca25c0bf8679a751034f65428ff6291cd4ca.tar.gz
kernel_samsung_smdk4412-7fbcca25c0bf8679a751034f65428ff6291cd4ca.tar.bz2
Merge branch 'sh/for-2.6.33' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6
* 'sh/for-2.6.33' of git://git.kernel.org/pub/scm/linux/kernel/git/lethal/sh-2.6: sh: Fix access to released memory in clk_debugfs_register_one() sh: Fix access to released memory in dwarf_unwinder_cleanup() usb: r8a66597-hdc disable interrupts fix spi: spi_sh_msiof: Fixed data sampling on the correct edge
Diffstat (limited to 'arch/sh/kernel/cpu/clock.c')
-rw-r--r--arch/sh/kernel/cpu/clock.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/kernel/cpu/clock.c b/arch/sh/kernel/cpu/clock.c
index f3a46be..83da5de 100644
--- 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;