x86, mrst: use a temporary variable for SFI irq
commit153b19a3b9fd8b9478495b9ee1f93f6a77c564f9
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 13 Oct 2011 09:04:20 +0000 (13 12:04 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Oct 2011 04:53:27 +0000 (14 16:53 +1200)
tree6798944f18da663b61557abef13a75d0126afa60
parent37cf95162af4036b4198756a590aab8126fa2ce4
x86, mrst: use a temporary variable for SFI irq

SFI tables reside in RAM and should not be modified once they are
written.  Current code went to set pentry->irq to zero which causes
subsequent reads to fail with invalid SFI table checksum.  This will
break kexec as the second kernel fails to validate SFI tables.

To fix this we use temporary variable for irq number.

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/platform/mrst/mrst.c