* Allocate space for the backup of all (non-pointer) encoder and
         * connector data.
         */
-       save_encoder_crtcs = kzalloc(dev->mode_config.num_encoder *
+       save_encoder_crtcs = kcalloc(dev->mode_config.num_encoder,
                                sizeof(struct drm_crtc *), GFP_KERNEL);
        if (!save_encoder_crtcs)
                return -ENOMEM;
 
-       save_connector_encoders = kzalloc(dev->mode_config.num_connector *
+       save_connector_encoders = kcalloc(dev->mode_config.num_connector,
                                sizeof(struct drm_encoder *), GFP_KERNEL);
        if (!save_connector_encoders) {
                kfree(save_encoder_crtcs);
 
        if (modes[n] == NULL)
                return best_score;
 
-       crtcs = kzalloc(fb_helper->connector_count *
+       crtcs = kcalloc(fb_helper->connector_count,
                        sizeof(struct drm_fb_helper_crtc *), GFP_KERNEL);
        if (!crtcs)
                return best_score;
 
        /* Find current connectors for CRTC */
        num_connectors = get_connectors_for_crtc(crtc, NULL, 0);
        BUG_ON(num_connectors == 0);
-       connector_list = kzalloc(num_connectors * sizeof(*connector_list),
+       connector_list = kcalloc(num_connectors, sizeof(*connector_list),
                                 GFP_KERNEL);
        if (!connector_list)
                return -ENOMEM;