]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/platform/x86/wmi.c
Merge tag 'mips_fixes_4.16_2' of git://git.kernel.org/pub/scm/linux/kernel/git/jhogan...
[linux.git] / drivers / platform / x86 / wmi.c
index daa68acbc9003b34615fc43b810c5fb77dd87ecf..c0c8945603cbbdd6284ff60b5df4d118502305d5 100644 (file)
@@ -933,7 +933,7 @@ static int wmi_dev_probe(struct device *dev)
                        goto probe_failure;
                }
 
-               buf = kmalloc(strlen(wdriver->driver.name) + 4, GFP_KERNEL);
+               buf = kmalloc(strlen(wdriver->driver.name) + 5, GFP_KERNEL);
                if (!buf) {
                        ret = -ENOMEM;
                        goto probe_string_failure;