Home
last modified time | relevance | path

Searched hist:c179a2896e6a5138e30786f1d7961d880dbd6d31 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/drivers/net/
H A Dfec_mxc.cc179a2896e6a5138e30786f1d7961d880dbd6d31 Fri Dec 11 08:47:28 UTC 2009 John Ogness <john.ogness@linutronix.de> fec_mxc: incomplete error handling

fec_init() will only allocate fec->base_ptr if it is non-NULL. But
the cleanup routine on error will free the pointer without setting
it to NULL. This means that a later call to fec_init() would result
in using an invalid pointer.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Signed-off-by: Ben Warren <biggerbadderben@gmail.com>