X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=net%2Fipv4%2Fesp4.c;h=fc2f8ce441def709bb1fdc88a4e8c651fc29ede2;hb=2b8ae728a8bada0cca10f30d3e7c52d384e8d5ad;hp=9bbdd4494551347b43bce292bb4406198aec4b18;hpb=2a2ed2db353d949c06b6ef8b6913f65b39111eab;p=pandora-kernel.git diff --git a/net/ipv4/esp4.c b/net/ipv4/esp4.c index 9bbdd4494551..fc2f8ce441de 100644 --- a/net/ipv4/esp4.c +++ b/net/ipv4/esp4.c @@ -1,4 +1,3 @@ -#include #include #include #include @@ -317,12 +316,10 @@ static int esp_init_state(struct xfrm_state *x) if (x->ealg == NULL) goto error; - esp = kmalloc(sizeof(*esp), GFP_KERNEL); + esp = kzalloc(sizeof(*esp), GFP_KERNEL); if (esp == NULL) return -ENOMEM; - memset(esp, 0, sizeof(*esp)); - if (x->aalg) { struct xfrm_algo_desc *aalg_desc;