]> git.baikalelectronics.ru Git - kernel.git/commit
x86, mrst: use a temporary variable for SFI irq
authorMika Westerberg <mika.westerberg@linux.intel.com>
Thu, 13 Oct 2011 09:04:20 +0000 (12:04 +0300)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 14 Oct 2011 04:53:27 +0000 (16:53 +1200)
commit0362e59119473a1010b74f27109b091fbe5b5921
tree6798944f18da663b61557abef13a75d0126afa60
parent50e825797cbee33671b9297f7273e2dc8b75f4b9
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