ia64/xen-unstable

changeset 13459:9fa13c7ebf8a

linux: Allow microcode updates of smaller than default size.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
author kfraser@localhost.localdomain
date Wed Jan 17 14:58:53 2007 +0000 (2007-01-17)
parents e303a2f329ee
children 120d882a4d8e
files linux-2.6-xen-sparse/arch/i386/kernel/microcode-xen.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/kernel/microcode-xen.c	Wed Jan 17 14:57:59 2007 +0000
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/kernel/microcode-xen.c	Wed Jan 17 14:58:53 2007 +0000
     1.3 @@ -85,7 +85,7 @@ static ssize_t microcode_write (struct f
     1.4  {
     1.5  	ssize_t ret;
     1.6  
     1.7 -	if (len < DEFAULT_UCODE_TOTALSIZE) {
     1.8 +	if (len < MC_HEADER_SIZE) {
     1.9  		printk(KERN_ERR "microcode: not enough data\n"); 
    1.10  		return -EINVAL;
    1.11  	}