x86, msr: Have the _safe MSR functions return -EIO, not -EFAULT
authorH. Peter Anvin <hpa@zytor.com>
Mon, 31 Aug 2009 21:23:29 +0000 (14:23 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 31 Aug 2009 22:15:23 +0000 (15:15 -0700)
commit0cc0213e73af5963eca259c84876937c20689dbd
tree2e3db62cc241269fbb3ee3313e568239cf4c9bd0
parent79c5dca3619d6ae15815eec14cd7a43db5f38b47
x86, msr: Have the _safe MSR functions return -EIO, not -EFAULT

For some reason, the _safe MSR functions returned -EFAULT, not -EIO.
However, the only user which cares about the return code as anything
other than a boolean is the MSR driver, which wants -EIO.  Change it
to -EIO across the board.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Cc: Jeremy Fitzhardinge <jeremy@xensource.com>
Cc: Chris Wright <chrisw@sous-sol.org>
Cc: Alok Kataria <akataria@vmware.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
arch/x86/include/asm/msr.h
arch/x86/kernel/msr.c
arch/x86/xen/enlighten.c