spi: sh-msiof: Use BIT() and GENMASK()
[sfrench/cifs-2.6.git] / ipc / namespace.c
index 21607791d62c800a80275770ea7e7d175bfbc866..b3ca1476ca5118793c096a0244b062fbff7255b0 100644 (file)
@@ -42,7 +42,7 @@ static struct ipc_namespace *create_ipc_ns(struct user_namespace *user_ns,
                goto fail;
 
        err = -ENOMEM;
-       ns = kmalloc(sizeof(struct ipc_namespace), GFP_KERNEL);
+       ns = kzalloc(sizeof(struct ipc_namespace), GFP_KERNEL);
        if (ns == NULL)
                goto fail_dec;