]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - sound/pci/emu10k1/emufx.c
ALSA: emu10k1: fix possible info leak to userspace on SNDRV_EMU10K1_IOCTL_INFO
[mirror_ubuntu-hirsute-kernel.git] / sound / pci / emu10k1 / emufx.c
index 90713741c2dcac91ba658a32ec2f8580394e90fb..6ebe817801ea9a2f5e0ef3c318ce1b2fad383446 100644 (file)
@@ -2540,7 +2540,7 @@ static int snd_emu10k1_fx8010_ioctl(struct snd_hwdep * hw, struct file *file, un
                emu->support_tlv = 1;
                return put_user(SNDRV_EMU10K1_VERSION, (int __user *)argp);
        case SNDRV_EMU10K1_IOCTL_INFO:
-               info = kmalloc(sizeof(*info), GFP_KERNEL);
+               info = kzalloc(sizeof(*info), GFP_KERNEL);
                if (!info)
                        return -ENOMEM;
                snd_emu10k1_fx8010_info(emu, info);