From cdc2d034dec058a96b06379018461cf4160658a2 Mon Sep 17 00:00:00 2001 From: Sylvain Rochet Date: Sun, 29 Mar 2015 01:33:59 +0100 Subject: [PATCH] PPP, MPPE, temporarily replaced kzalloc() with malloc() --- src/netif/ppp/mppe.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/netif/ppp/mppe.c b/src/netif/ppp/mppe.c index 5e50756d..551a1060 100644 --- a/src/netif/ppp/mppe.c +++ b/src/netif/ppp/mppe.c @@ -153,7 +153,8 @@ static void *mppe_alloc(unsigned char *options, int optlen) options[0] != CI_MPPE || options[1] != CILEN_MPPE) goto out; - state = kzalloc(sizeof(*state), GFP_KERNEL); + /* FIXME: remove malloc() */ + state = malloc(sizeof(*state)); if (state == NULL) goto out; @@ -171,7 +172,7 @@ static void *mppe_alloc(unsigned char *options, int optlen) return (void *)state; out_free: - kfree(state); + free(state); out: return NULL; } @@ -183,7 +184,7 @@ static void mppe_free(void *arg) { struct ppp_mppe_state *state = (struct ppp_mppe_state *) arg; if (state) { - kfree(state); + free(state); } }