Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219088
b: refs/heads/master
c: 1f8766b
h: refs/heads/master
v: v3
  • Loading branch information
Mats Randgaard authored and Mauro Carvalho Chehab committed Oct 21, 2010
1 parent dd5d0c5 commit 2f1e54e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ffa1b391c61b9f9a2b5d14859bfdd9259fc6c4da
refs/heads/master: 1f8766b4e3f06c2206e7ff48da72d2886672759a
4 changes: 2 additions & 2 deletions trunk/drivers/media/video/davinci/vpif_capture.c
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ static int vpif_open(struct file *filep)
}

/* Allocate memory for the file handle object */
fh = kmalloc(sizeof(struct vpif_fh), GFP_KERNEL);
fh = kzalloc(sizeof(struct vpif_fh), GFP_KERNEL);
if (NULL == fh) {
vpif_err("unable to allocate memory for file handle object\n");
ret = -ENOMEM;
Expand Down Expand Up @@ -1995,7 +1995,7 @@ static __init int vpif_probe(struct platform_device *pdev)
config = pdev->dev.platform_data;

subdev_count = config->subdev_count;
vpif_obj.sd = kmalloc(sizeof(struct v4l2_subdev *) * subdev_count,
vpif_obj.sd = kzalloc(sizeof(struct v4l2_subdev *) * subdev_count,
GFP_KERNEL);
if (vpif_obj.sd == NULL) {
vpif_err("unable to allocate memory for subdevice pointers\n");
Expand Down
6 changes: 3 additions & 3 deletions trunk/drivers/media/video/davinci/vpif_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ static int vpif_open(struct file *filep)

ch = video_get_drvdata(vdev);
/* Allocate memory for the file handle object */
fh = kmalloc(sizeof(struct vpif_fh), GFP_KERNEL);
fh = kzalloc(sizeof(struct vpif_fh), GFP_KERNEL);
if (fh == NULL) {
vpif_err("unable to allocate memory for file handle object\n");
return -ENOMEM;
Expand Down Expand Up @@ -1396,7 +1396,7 @@ static int initialize_vpif(void)
/* Allocate memory for six channel objects */
for (i = 0; i < VPIF_DISPLAY_MAX_DEVICES; i++) {
vpif_obj.dev[i] =
kmalloc(sizeof(struct channel_obj), GFP_KERNEL);
kzalloc(sizeof(struct channel_obj), GFP_KERNEL);
/* If memory allocation fails, return error */
if (!vpif_obj.dev[i]) {
free_channel_objects_index = i;
Expand Down Expand Up @@ -1542,7 +1542,7 @@ static __init int vpif_probe(struct platform_device *pdev)
config = pdev->dev.platform_data;
subdev_count = config->subdev_count;
subdevdata = config->subdevinfo;
vpif_obj.sd = kmalloc(sizeof(struct v4l2_subdev *) * subdev_count,
vpif_obj.sd = kzalloc(sizeof(struct v4l2_subdev *) * subdev_count,
GFP_KERNEL);
if (vpif_obj.sd == NULL) {
vpif_err("unable to allocate memory for subdevice pointers\n");
Expand Down

0 comments on commit 2f1e54e

Please sign in to comment.