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: NJohn Ogness <john.ogness@linutronix.de> Signed-off-by: NBen Warren <biggerbadderben@gmail.com>
Showing
想要评论请 注册 或 登录