commit | c179a2896e6a5138e30786f1d7961d880dbd6d31 | [log] [tgz] |
---|---|---|
author | John Ogness <john.ogness@linutronix.de> | Fri Dec 11 09:47:28 2009 +0100 |
committer | Ben Warren <biggerbadderben@gmail.com> | Sun Dec 13 21:55:15 2009 -0800 |
tree | fbd645f1397628a3b03d6d06937ad3c7fcda5f04 | |
parent | 2ab4a4d0952b754b1c74f4d2b12b83d600d449c8 [diff] |
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>