From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Warren Date: Sun, 13 Dec 2009 22:00:39 -0800 Subject: [U-Boot] [PATCH] fec_mxc: incomplete error handling In-Reply-To: <80d42l3nj3.fsf@merkur.tec.linutronix.de> References: <80d42l3nj3.fsf@merkur.tec.linutronix.de> Message-ID: <4B25D487.9060106@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 Applied to net/next. regards, Ben