]> err.no Git - linux-2.6/blobdiff - arch/arm/kernel/apm.c
[ARM] 3626/1: ARM EABI: fix syscall restarting
[linux-2.6] / arch / arm / kernel / apm.c
index 766b6c05c6db6a2cf9d97e4a0f8d4a84f475f63b..2bed290fec76b4522bee0befb6812f141f82aaab 100644 (file)
@@ -357,10 +357,8 @@ static int apm_open(struct inode * inode, struct file * filp)
 {
        struct apm_user *as;
 
-       as = (struct apm_user *)kmalloc(sizeof(*as), GFP_KERNEL);
+       as = (struct apm_user *)kzalloc(sizeof(*as), GFP_KERNEL);
        if (as) {
-               memset(as, 0, sizeof(*as));
-
                /*
                 * XXX - this is a tiny bit broken, when we consider BSD
                 * process accounting. If the device is opened by root, we