浏览代码

V4L/DVB (9389): Use kzalloc instead of kmalloc

Signed-off-by: Marko Schluessler <marco@lordzodiac.de>
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Marko Schluessler 17 年之前
父节点
当前提交
a18d43156a
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/media/dvb/frontends/stb6100.c

+ 1 - 1
drivers/media/dvb/frontends/stb6100.c

@@ -527,7 +527,7 @@ struct dvb_frontend *stb6100_attach(struct dvb_frontend *fe,
 {
 	struct stb6100_state *state = NULL;
 
-	state = kmalloc(sizeof (struct stb6100_state), GFP_KERNEL);
+	state = kzalloc(sizeof (struct stb6100_state), GFP_KERNEL);
 	if (state == NULL)
 		goto error;