Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124568
b: refs/heads/master
c: 77fe3d4
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Mauro Carvalho Chehab committed Dec 30, 2008
1 parent d5602cf commit c5e7fde
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 7dcb212eee1d3833073ba0458ca5a603b7b05cc5
refs/heads/master: 77fe3d4a44f76653263eb8671d7909ab0fdafd71
5 changes: 4 additions & 1 deletion trunk/drivers/media/video/ov772x.c
Original file line number Diff line number Diff line change
Expand Up @@ -942,8 +942,10 @@ static int ov772x_probe(struct i2c_client *client,

ret = soc_camera_device_register(icd);

if (ret)
if (ret) {
i2c_set_clientdata(client, NULL);
kfree(priv);
}

return ret;
}
Expand All @@ -953,6 +955,7 @@ static int ov772x_remove(struct i2c_client *client)
struct ov772x_priv *priv = i2c_get_clientdata(client);

soc_camera_device_unregister(&priv->icd);
i2c_set_clientdata(client, NULL);
kfree(priv);
return 0;
}
Expand Down

0 comments on commit c5e7fde

Please sign in to comment.