From 83ca5e9ae58b317cc4ad8c0ab1cc69cec75c5817 Mon Sep 17 00:00:00 2001 From: Adam Madsen Date: Wed, 11 Nov 2020 14:03:30 -0600 Subject: [PATCH] [core] Zero stack-allocated struct. --- src/vendor-reset.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vendor-reset.c b/src/vendor-reset.c index 405f294..4a3def1 100644 --- a/src/vendor-reset.c +++ b/src/vendor-reset.c @@ -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;