fs_enet: Fix a memory leak in fs_enet_mdio_probe

There are more memory leaks in the !PPC_CPM_NEW_BINDING case, but that code
will disappear soon along with arch/ppc.

Reported by Daniel Marjamki <danielm77@spray.se> at
http://bugzilla.kernel.org/show_bug.cgi?id=10591

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by Scott Wood and committed by Jeff Garzik a86e2cbe 46fa0617

+2 -1
+2 -1
drivers/net/fs_enet/mii-fec.c
··· 194 194 195 195 ret = of_address_to_resource(ofdev->node, 0, &res); 196 196 if (ret) 197 - return ret; 197 + goto out_res; 198 198 199 199 snprintf(new_bus->id, MII_BUS_ID_SIZE, "%x", res.start); 200 200 ··· 236 236 kfree(new_bus->irq); 237 237 out_unmap_regs: 238 238 iounmap(fec->fecp); 239 + out_res: 239 240 out_fec: 240 241 kfree(fec); 241 242 out_mii: