Commit 34dadab4 authored by Catalin Marinas's avatar Catalin Marinas Committed by Russell King

[ARM PATCH] 1880/1: cache_type is uninitialised in the blockops_check() function

Patch from Catalin Marinas

In the blockops_check() function, cache_type is uninitialised

because an "mcr" instruction is used instead of "mrc".
parent 55a7006f
......@@ -133,7 +133,7 @@ static int __init blockops_check(void)
unsigned int cache_type;
int i;
asm("mcr p15, 0, %0, c0, c0, 1" : "=r" (cache_type));
asm("mrc p15, 0, %0, c0, c0, 1" : "=r" (cache_type));
printk("Checking V6 block cache operations:\n");
register_undef_hook(&blockops_hook);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment