Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 285443
b: refs/heads/master
c: 1b7acf0
h: refs/heads/master
i:
  285441: 65e5c5c
  285439: 3f73f14
v: v3
  • Loading branch information
Thomas Meyer authored and Mauro Carvalho Chehab committed Dec 30, 2011
1 parent e7267cd commit 96f4292
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 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: 9884d7bea756a4657c6a5d20249bffadc460e140
refs/heads/master: 1b7acf0ccd61b814032668d1d21740cfae3304e3
2 changes: 1 addition & 1 deletion trunk/drivers/media/common/tuners/tuner-xc2028.c
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ static int load_all_firmwares(struct dvb_frontend *fe)
n_array, fname, name,
priv->firm_version >> 8, priv->firm_version & 0xff);

priv->firm = kzalloc(sizeof(*priv->firm) * n_array, GFP_KERNEL);
priv->firm = kcalloc(n_array, sizeof(*priv->firm), GFP_KERNEL);
if (priv->firm == NULL) {
tuner_err("Not enough memory to load firmware file.\n");
rc = -ENOMEM;
Expand Down
2 changes: 1 addition & 1 deletion trunk/drivers/media/common/tuners/xc4000.c
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ static int xc4000_fwupload(struct dvb_frontend *fe)
n_array, fname, name,
priv->firm_version >> 8, priv->firm_version & 0xff);

priv->firm = kzalloc(sizeof(*priv->firm) * n_array, GFP_KERNEL);
priv->firm = kcalloc(n_array, sizeof(*priv->firm), GFP_KERNEL);
if (priv->firm == NULL) {
printk(KERN_ERR "Not enough memory to load firmware file.\n");
rc = -ENOMEM;
Expand Down

0 comments on commit 96f4292

Please sign in to comment.