*
*/
+#include <linux/config.h>
#include <linux/module.h>
#include <linux/types.h>
edev = dev->ec_ptr;
if (edev == NULL) {
/* Magic up a new one. */
- edev = kzalloc(sizeof(struct ec_device), GFP_KERNEL);
+ edev = kmalloc(sizeof(struct ec_device), GFP_KERNEL);
if (edev == NULL) {
err = -ENOMEM;
break;
}
+ memset(edev, 0, sizeof(struct ec_device));
dev->ec_ptr = edev;
} else
net2dev_map[edev->net] = NULL;