Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61a2353c authored by Volokh Konstantin's avatar Volokh Konstantin Committed by Mauro Carvalho Chehab
Browse files

[media] staging: media: go7007: memory clear fix memory clearing for v4l2_subdev allocation

parent f85ed0ce
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -572,7 +572,7 @@ struct go7007 *go7007_alloc(struct go7007_board_info *board, struct device *dev)
	struct go7007 *go;
	int i;

	go = kmalloc(sizeof(struct go7007), GFP_KERNEL);
	go = kzalloc(sizeof(struct go7007), GFP_KERNEL);
	if (go == NULL)
		return NULL;
	go->dev = dev;
+1 −1
Original line number Diff line number Diff line
@@ -98,7 +98,7 @@ static int go7007_open(struct file *file)

	if (go->status != STATUS_ONLINE)
		return -EBUSY;
	gofh = kmalloc(sizeof(struct go7007_file), GFP_KERNEL);
	gofh = kzalloc(sizeof(struct go7007_file), GFP_KERNEL);
	if (gofh == NULL)
		return -ENOMEM;
	++go->ref_count;