Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 205636
b: refs/heads/master
c: 37a1863
h: refs/heads/master
v: v3
  • Loading branch information
Julia Lawall authored and Greg Kroah-Hartman committed Jun 18, 2010
1 parent 43f22b6 commit 5386742
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 34 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: 7c0ace54887872ebd99fefdfe85d273295a09426
refs/heads/master: 37a18632b00f0d1627556c532f719ad5a08b369f
45 changes: 12 additions & 33 deletions trunk/drivers/staging/dream/camera/msm_vfe8x.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,17 +644,10 @@ static int vfe_config(struct msm_vfe_cfg_cmd *cmd, void *data)
if (!axid)
return -EFAULT;

axio =
kmalloc(sizeof(struct vfe_cmd_axi_output_config),
GFP_ATOMIC);
if (!axio)
return -ENOMEM;

if (copy_from_user(axio, (void __user *)(vfecmd.value),
sizeof(struct vfe_cmd_axi_output_config))) {
kfree(axio);
return -EFAULT;
}
axio = memdup_user((void __user *)(vfecmd.value),
sizeof(struct vfe_cmd_axi_output_config));
if (IS_ERR(axio))
return PTR_ERR(axio);

vfe_config_axi(OUTPUT_1, axid, axio);
vfe_axi_output_config(axio);
Expand All @@ -669,17 +662,10 @@ static int vfe_config(struct msm_vfe_cfg_cmd *cmd, void *data)
if (!axid)
return -EFAULT;

axio =
kmalloc(sizeof(struct vfe_cmd_axi_output_config),
GFP_ATOMIC);
if (!axio)
return -ENOMEM;

if (copy_from_user(axio, (void __user *)(vfecmd.value),
sizeof(struct vfe_cmd_axi_output_config))) {
kfree(axio);
return -EFAULT;
}
axio = memdup_user((void __user *)(vfecmd.value),
sizeof(struct vfe_cmd_axi_output_config));
if (IS_ERR(axio))
return PTR_ERR(axio);

vfe_config_axi(OUTPUT_2, axid, axio);

Expand All @@ -694,17 +680,10 @@ static int vfe_config(struct msm_vfe_cfg_cmd *cmd, void *data)
if (!axid)
return -EFAULT;

axio =
kmalloc(sizeof(struct vfe_cmd_axi_output_config),
GFP_ATOMIC);
if (!axio)
return -ENOMEM;

if (copy_from_user(axio, (void __user *)(vfecmd.value),
sizeof(struct vfe_cmd_axi_output_config))) {
kfree(axio);
return -EFAULT;
}
axio = memdup_user((void __user *)(vfecmd.value),
sizeof(struct vfe_cmd_axi_output_config));
if (IS_ERR(axio))
return PTR_ERR(axio);

vfe_config_axi(OUTPUT_1_AND_2,
axid, axio);
Expand Down

0 comments on commit 5386742

Please sign in to comment.