linux: Allow microcode updates of smaller than default size.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 17 Jan 2007 14:58:53 +0000 (14:58 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 17 Jan 2007 14:58:53 +0000 (14:58 +0000)
Signed-off-by: Kurt Garloff <kurt@garloff.de>
linux-2.6-xen-sparse/arch/i386/kernel/microcode-xen.c

index 926ba175c3dab364f94e6d8d33f4e0d247df54ca..756c13e586828ef48ab756d23201adf99c3a10fe 100644 (file)
@@ -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;
        }