diff options
author | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-17 14:58:53 +0000 |
---|---|---|
committer | kfraser@localhost.localdomain <kfraser@localhost.localdomain> | 2007-01-17 14:58:53 +0000 |
commit | bba72b94d7ef7a00d278c12e9aed5caae0a62016 (patch) | |
tree | c7d24ce8d7decb17244fe329acb250006cd3bb6b /linux-2.6-xen-sparse | |
parent | 1468aea9005c69cdb769010d8e1456955b967498 (diff) | |
download | xen-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.c | 2 |
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; } |