mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
linux: Allow microcode updates of smaller than default size.
Signed-off-by: Kurt Garloff <kurt@garloff.de>
This commit is contained in:
1 parent
1468aea900
commit
bba72b94d7
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||