[U-Boot] [PATCH] fec_mxc: incomplete error handling

Ben Warren biggerbadderben at gmail.com
Mon Dec 14 07:00:39 CET 2009


John,

John Ogness wrote:
> 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.
>
> The following patch to fix this is against u-boot-2009.11-rc2.
>
> Signed-off-by: John Ogness <john.ogness at linutronix.de>

Applied to net/next.

regards,
Ben


More information about the U-Boot mailing list