linux: Allow microcode updates of smaller than default size.

Signed-off-by: Kurt Garloff <kurt@garloff.de>
This commit is contained in:
kfraser@localhost.localdomain committed 2007-01-17 14:58:53 +00:00
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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.