X-Git-Url: https://git.codelabs.ch/?p=muen%2Flinux.git;a=blobdiff_plain;f=sound%2Fsoc%2Fcodecs%2Fhdmi-codec.c;h=d00734d31e0429bf3df8c12b0bcc118ccefb3ec2;hp=3e5b12de71bb26a286827f14acdb63c52d7e6871;hb=35ef57a4190d4253b73720cf0402158eda0f1bc8;hpb=0717edbdfed61b4c1e8291140f78882d3a481042 diff --git a/sound/soc/codecs/hdmi-codec.c b/sound/soc/codecs/hdmi-codec.c index 3e5b12de71bb..d00734d31e04 100644 --- a/sound/soc/codecs/hdmi-codec.c +++ b/sound/soc/codecs/hdmi-codec.c @@ -780,7 +780,7 @@ static int hdmi_codec_probe(struct platform_device *pdev) hcp->hcd = *hcd; mutex_init(&hcp->current_stream_lock); - hcp->daidrv = devm_kzalloc(dev, dai_count * sizeof(*hcp->daidrv), + hcp->daidrv = devm_kcalloc(dev, dai_count, sizeof(*hcp->daidrv), GFP_KERNEL); if (!hcp->daidrv) return -ENOMEM;