]> Git Repo - linux.git/blobdiff - net/sunrpc/auth_gss/gss_krb5_mech.c
[NET]: Conversions from kmalloc+memset to k(z|c)alloc.
[linux.git] / net / sunrpc / auth_gss / gss_krb5_mech.c
index b8714a87b34ccc24365ad772df0b27273d246c1e..70e1e53a632b1120ca8913fbec39a67a97455ae4 100644 (file)
@@ -129,9 +129,8 @@ gss_import_sec_context_kerberos(const void *p,
        const void *end = (const void *)((const char *)p + len);
        struct  krb5_ctx *ctx;
 
-       if (!(ctx = kmalloc(sizeof(*ctx), GFP_KERNEL)))
+       if (!(ctx = kzalloc(sizeof(*ctx), GFP_KERNEL)))
                goto out_err;
-       memset(ctx, 0, sizeof(*ctx));
 
        p = simple_get_bytes(p, end, &ctx->initiate, sizeof(ctx->initiate));
        if (IS_ERR(p))
This page took 0.027248 seconds and 4 git commands to generate.