[media] xc4000: Use kcalloc instead of kzalloc to allocate array
[firefly-linux-kernel-4.4.55.git] / drivers / media / common / tuners / tuner-xc2028.c
index e531267babce35b22a305b1491e72008addcd4fa..4df952c47f8628eb7c6d187b0cc302185eec9aba 100644 (file)
@@ -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;