提交 de0b9576 编写于 作者: N Nobuhiro Iwamatsu 提交者: Wolfgang Denk

net: fec_mxc: Add initialized eth_device structure

This prevents access to the member of eth_device which is not initialized.
Signed-off-by: NNobuhiro Iwamatsu <iwamatsu@nigauri.org>
CC: Ben Warren <biggerbadderben@gmail.com>
上级 72c4c33e
......@@ -710,6 +710,7 @@ static int fec_probe(bd_t *bd)
puts("fec_mxc: not enough malloc memory\n");
return -ENOMEM;
}
memset(edev, 0, sizeof(*edev));
edev->priv = fec;
edev->init = fec_init;
edev->send = fec_send;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册