aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-17 14:58:53 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-17 14:58:53 +0000
commitbba72b94d7ef7a00d278c12e9aed5caae0a62016 (patch)
treec7d24ce8d7decb17244fe329acb250006cd3bb6b /linux-2.6-xen-sparse
parent1468aea9005c69cdb769010d8e1456955b967498 (diff)
downloadxen-bba72b94d7ef7a00d278c12e9aed5caae0a62016.tar.gz
xen-bba72b94d7ef7a00d278c12e9aed5caae0a62016.tar.bz2
xen-bba72b94d7ef7a00d278c12e9aed5caae0a62016.zip
linux: Allow microcode updates of smaller than default size.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
Diffstat (limited to 'linux-2.6-xen-sparse')
-rw-r--r--linux-2.6-xen-sparse/arch/i386/kernel/microcode-xen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-2.6-xen-sparse/arch/i386/kernel/microcode-xen.c b/linux-2.6-xen-sparse/arch/i386/kernel/microcode-xen.c
index 926ba175c3..756c13e586 100644
--- a/linux-2.6-xen-sparse/arch/i386/kernel/microcode-xen.c
+++ b/linux-2.6-xen-sparse/arch/i386/kernel/microcode-xen.c
@@ -85,7 +85,7 @@ static ssize_t microcode_write (struct file *file, const char __user *buf, size_
{
ssize_t ret;
- if (len < DEFAULT_UCODE_TOTALSIZE) {
+ if (len < MC_HEADER_SIZE) {
printk(KERN_ERR "microcode: not enough data\n");
return -EINVAL;
}