mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-08-24 15:16:02 +00:00
PPP, MPPE, temporarily replaced kzalloc() with malloc()
This commit is contained in:
parent
cd8a17d644
commit
cdc2d034de
|
@ -153,7 +153,8 @@ static void *mppe_alloc(unsigned char *options, int optlen)
|
||||||
options[0] != CI_MPPE || options[1] != CILEN_MPPE)
|
options[0] != CI_MPPE || options[1] != CILEN_MPPE)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
state = kzalloc(sizeof(*state), GFP_KERNEL);
|
/* FIXME: remove malloc() */
|
||||||
|
state = malloc(sizeof(*state));
|
||||||
if (state == NULL)
|
if (state == NULL)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
@ -171,7 +172,7 @@ static void *mppe_alloc(unsigned char *options, int optlen)
|
||||||
return (void *)state;
|
return (void *)state;
|
||||||
|
|
||||||
out_free:
|
out_free:
|
||||||
kfree(state);
|
free(state);
|
||||||
out:
|
out:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
@ -183,7 +184,7 @@ static void mppe_free(void *arg)
|
||||||
{
|
{
|
||||||
struct ppp_mppe_state *state = (struct ppp_mppe_state *) arg;
|
struct ppp_mppe_state *state = (struct ppp_mppe_state *) arg;
|
||||||
if (state) {
|
if (state) {
|
||||||
kfree(state);
|
free(state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user