[core] Zero stack-allocated struct.

This commit is contained in:
Adam Madsen 2020-11-11 14:03:30 -06:00
parent 6dec3dcbaa
commit 83ca5e9ae5
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ static long vendor_reset_ioctl_reset(struct file * filp, unsigned long arg)
struct vendor_reset_cfg *entry = vendor_reset_devices;
struct pci_dev * pcidev;
int ret;
struct vendor_reset_dev vdev;
struct vendor_reset_dev vdev = {0};
if (copy_from_user(&dev, (void __user *)arg, sizeof(dev)))
return -EFAULT;