diff options
Diffstat (limited to 'drivers/media/common/tuners/tuner-xc2028.c')
-rw-r--r-- | drivers/media/common/tuners/tuner-xc2028.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/common/tuners/tuner-xc2028.c b/drivers/media/common/tuners/tuner-xc2028.c index e531267babce..4df952c47f86 100644 --- a/drivers/media/common/tuners/tuner-xc2028.c +++ b/drivers/media/common/tuners/tuner-xc2028.c | |||
@@ -311,7 +311,7 @@ static int load_all_firmwares(struct dvb_frontend *fe) | |||
311 | n_array, fname, name, | 311 | n_array, fname, name, |
312 | priv->firm_version >> 8, priv->firm_version & 0xff); | 312 | priv->firm_version >> 8, priv->firm_version & 0xff); |
313 | 313 | ||
314 | priv->firm = kzalloc(sizeof(*priv->firm) * n_array, GFP_KERNEL); | 314 | priv->firm = kcalloc(n_array, sizeof(*priv->firm), GFP_KERNEL); |
315 | if (priv->firm == NULL) { | 315 | if (priv->firm == NULL) { |
316 | tuner_err("Not enough memory to load firmware file.\n"); | 316 | tuner_err("Not enough memory to load firmware file.\n"); |
317 | rc = -ENOMEM; | 317 | rc = -ENOMEM; |