Commit 920f9463 authored by Rusty Russell's avatar Rusty Russell Committed by Linus Torvalds

[PATCH] Handle kmalloc fails: drivers_isdn_i4l_isdn_ppp_ccp.c

From:  Pablo Menichini <pablo@menichini.com.ar>
parent afff95cf
......@@ -241,6 +241,8 @@ ippp_ccp_alloc(void)
struct ippp_ccp *ccp;
ccp = kmalloc(sizeof(*ccp), GFP_ATOMIC); // FIXME
if (!cpp)
return NULL;
memset(ccp, 0, sizeof(*ccp));
ccp->mru = 1524; /* MRU, default 1524 */
ccp->reset = kmalloc(sizeof(*ccp->reset), GFP_ATOMIC); // FIXME alloc together?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment