]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/misc/ibmasm/ibmasmfs.c
Merge branch 'linus' into x86/pat2
[linux-2.6-omap-h63xx.git] / drivers / misc / ibmasm / ibmasmfs.c
index eb7b073734b8de3acf075717056775662198ee0e..22a7e8ba211d242dd0b25c477f2ea5b7c4bcd07c 100644 (file)
@@ -563,11 +563,10 @@ static ssize_t remote_settings_file_write(struct file *file, const char __user *
        if (*offset != 0)
                return 0;
 
-       buff = kmalloc (count + 1, GFP_KERNEL);
+       buff = kzalloc (count + 1, GFP_KERNEL);
        if (!buff)
                return -ENOMEM;
 
-       memset(buff, 0x0, count + 1);
 
        if (copy_from_user(buff, ubuff, count)) {
                kfree(buff);