[NET]: Conversions from kmalloc+memset to k(z|c)alloc.
Signed-off-by: Panagiotis Issaris <takis@issaris.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
a0ee7c70b2
commit
0da974f4f3
@@ -1322,11 +1322,10 @@ svc_setup_socket(struct svc_serv *serv, struct socket *sock,
|
||||
struct sock *inet;
|
||||
|
||||
dprintk("svc: svc_setup_socket %p\n", sock);
|
||||
if (!(svsk = kmalloc(sizeof(*svsk), GFP_KERNEL))) {
|
||||
if (!(svsk = kzalloc(sizeof(*svsk), GFP_KERNEL))) {
|
||||
*errp = -ENOMEM;
|
||||
return NULL;
|
||||
}
|
||||
memset(svsk, 0, sizeof(*svsk));
|
||||
|
||||
inet = sock->sk;
|
||||
|
||||
|
Reference in New Issue
Block a user