x86: cpuid: correct return value on partial operations
authorH. Peter Anvin <hpa@zytor.com>
Tue, 26 Aug 2008 00:35:25 +0000 (17:35 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Tue, 26 Aug 2008 00:46:12 +0000 (17:46 -0700)
commit9ea2b82ed6265a31f9a84886d74d8a2ef01b27c8
treec42e3515b37c0e16e03e230d8cf28d07b240d9b2
parent85f1cb60157e06d9e8996b02fad9ba6964523d75
x86: cpuid: correct return value on partial operations

Return the correct return value when the CPUID driver partially
completes a request (we should return the number of bytes actually
read or written, instead of the error code.)

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/cpuid.c