diff options
author | Vivi Li <vivi.li@analog.com> | 2010-11-17 04:26:19 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2011-01-10 07:18:23 -0500 |
commit | 9fc205283f8b163fba611a40226afdd82f4f29d3 (patch) | |
tree | 6ef66405f8300804ecf31131dc02c15462d697f8 | |
parent | b68233e7f0126dfe59e1a064da9e37827c1f35ec (diff) | |
download | op-kernel-dev-9fc205283f8b163fba611a40226afdd82f4f29d3.zip op-kernel-dev-9fc205283f8b163fba611a40226afdd82f4f29d3.tar.gz |
Blackfin: kgdb_test: make sure to initialize num2
We check its value at runtime, so we want to avoid garbage across runs.
Signed-off-by: Vivi Li <vivi.li@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r-- | arch/blackfin/kernel/kgdb_test.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/kgdb_test.c b/arch/blackfin/kernel/kgdb_test.c index 08c0236..2a6e9db 100644 --- a/arch/blackfin/kernel/kgdb_test.c +++ b/arch/blackfin/kernel/kgdb_test.c @@ -95,6 +95,10 @@ static int __init kgdbtest_init(void) { struct proc_dir_entry *entry; +#if L2_LENGTH + num2 = 0; +#endif + entry = proc_create("kgdbtest", 0, NULL, &kgdb_test_proc_fops); if (entry == NULL) return -ENOMEM; |