Skip to content

Commit

Permalink
Blackfin: kgdb_test: make sure to initialize num2
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vivi Li authored and Mike Frysinger committed Jan 10, 2011
1 parent b68233e commit 9fc2052
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/blackfin/kernel/kgdb_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9fc2052

Please sign in to comment.