aboutsummaryrefslogtreecommitdiffstats
path: root/arch/blackfin/kernel/kgdb_test.c
diff options
context:
space:
mode:
authorVivi Li <vivi.li@analog.com>2010-11-16 23:26:19 -0500
committerMike Frysinger <vapier@gentoo.org>2011-01-10 07:18:23 -0500
commit9fc205283f8b163fba611a40226afdd82f4f29d3 (patch)
tree6ef66405f8300804ecf31131dc02c15462d697f8 /arch/blackfin/kernel/kgdb_test.c
parentb68233e7f0126dfe59e1a064da9e37827c1f35ec (diff)
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>
Diffstat (limited to 'arch/blackfin/kernel/kgdb_test.c')
-rw-r--r--arch/blackfin/kernel/kgdb_test.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/blackfin/kernel/kgdb_test.c b/arch/blackfin/kernel/kgdb_test.c
index 08c0236acf3c..2a6e9dbb62a5 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)
95{ 95{
96 struct proc_dir_entry *entry; 96 struct proc_dir_entry *entry;
97 97
98#if L2_LENGTH
99 num2 = 0;
100#endif
101
98 entry = proc_create("kgdbtest", 0, NULL, &kgdb_test_proc_fops); 102 entry = proc_create("kgdbtest", 0, NULL, &kgdb_test_proc_fops);
99 if (entry == NULL) 103 if (entry == NULL)
100 return -ENOMEM; 104 return -ENOMEM;