summaryrefslogtreecommitdiff
path: root/udev-add.c
diff options
context:
space:
mode:
Diffstat (limited to 'udev-add.c')
-rw-r--r--udev-add.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/udev-add.c b/udev-add.c
index 634a515c96..068fd46f27 100644
--- a/udev-add.c
+++ b/udev-add.c
@@ -245,6 +245,8 @@ int udev_add_device(char *path, char *subsystem)
struct udevice dev;
int retval = -EINVAL;
+ memset(&dev, 0x00, sizeof(dev));
+
/* for now, the block layer is the only place where block devices are */
if (strcmp(subsystem, "block") == 0)
dev.type = 'b';