Browse Source

net: fec_mxc: Add initialized eth_device structure

This prevents access to the member of eth_device which is not initialized.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
CC: Ben Warren <biggerbadderben@gmail.com>
master
Nobuhiro Iwamatsu 10 years ago
committed by Wolfgang Denk
parent
commit
de0b95762a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      drivers/net/fec_mxc.c

+ 1
- 0
drivers/net/fec_mxc.c View File

@ -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;


Loading…
Cancel
Save