summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/caif/cfmuxl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/caif/cfmuxl.c b/net/caif/cfmuxl.c
index 8c5d6386319f..510aa5a753f0 100644
--- a/net/caif/cfmuxl.c
+++ b/net/caif/cfmuxl.c
@@ -47,10 +47,10 @@ static struct cflayer *get_up(struct cfmuxl *muxl, u16 id);
47 47
48struct cflayer *cfmuxl_create(void) 48struct cflayer *cfmuxl_create(void)
49{ 49{
50 struct cfmuxl *this = kmalloc(sizeof(struct cfmuxl), GFP_ATOMIC); 50 struct cfmuxl *this = kzalloc(sizeof(struct cfmuxl), GFP_ATOMIC);
51
51 if (!this) 52 if (!this)
52 return NULL; 53 return NULL;
53 memset(this, 0, sizeof(*this));
54 this->layer.receive = cfmuxl_receive; 54 this->layer.receive = cfmuxl_receive;
55 this->layer.transmit = cfmuxl_transmit; 55 this->layer.transmit = cfmuxl_transmit;
56 this->layer.ctrlcmd = cfmuxl_ctrlcmd; 56 this->layer.ctrlcmd = cfmuxl_ctrlcmd;