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>
This commit is contained in:
Родитель
b68233e7f0
Коммит
9fc205283f
|
@ -95,6 +95,10 @@ static int __init kgdbtest_init(void)
|
||||||
{
|
{
|
||||||
struct proc_dir_entry *entry;
|
struct proc_dir_entry *entry;
|
||||||
|
|
||||||
|
#if L2_LENGTH
|
||||||
|
num2 = 0;
|
||||||
|
#endif
|
||||||
|
|
||||||
entry = proc_create("kgdbtest", 0, NULL, &kgdb_test_proc_fops);
|
entry = proc_create("kgdbtest", 0, NULL, &kgdb_test_proc_fops);
|
||||||
if (entry == NULL)
|
if (entry == NULL)
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
|
|
Загрузка…
Ссылка в новой задаче