diff options
author | Volokh Konstantin <volokh84@gmail.com> | 2013-01-16 09:00:48 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-06 08:58:38 -0200 |
commit | 61a2353c70d1f33c52768fb7d3fd7ee173928086 (patch) | |
tree | 9de17dc0cd20ab075a0768f0f024086cab57a576 /drivers/staging/media/go7007/go7007-v4l2.c | |
parent | f85ed0ceeba78b6b15a857ce48888fdb52de28d0 (diff) | |
download | op-kernel-dev-61a2353c70d1f33c52768fb7d3fd7ee173928086.zip op-kernel-dev-61a2353c70d1f33c52768fb7d3fd7ee173928086.tar.gz |
[media] staging: media: go7007: memory clear fix memory clearing for v4l2_subdev allocation
Signed-off-by: Volokh Konstantin <volokh84@gmail.com>
Acked-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/staging/media/go7007/go7007-v4l2.c')
-rw-r--r-- | drivers/staging/media/go7007/go7007-v4l2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/media/go7007/go7007-v4l2.c b/drivers/staging/media/go7007/go7007-v4l2.c index 0d3713d..9489975 100644 --- a/drivers/staging/media/go7007/go7007-v4l2.c +++ b/drivers/staging/media/go7007/go7007-v4l2.c @@ -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; |