]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
powerpc/82xx: kmalloc failure ignored in ep8248e_mdio_probe()
authorRoel Kluin <roel.kluin@gmail.com>
Wed, 9 Sep 2009 14:49:57 +0000 (16:49 +0200)
committerKumar Gala <galak@kernel.crashing.org>
Thu, 5 Nov 2009 13:18:00 +0000 (07:18 -0600)
commit58459a4e19e107d793a58a46780def2cea12a391
treeb4bb42dd78b291debf72a2c3f8780d700e80915c
parentcb5485a0b99b232c5c7c4c21e2346f8ab7ef555d
powerpc/82xx: kmalloc failure ignored in ep8248e_mdio_probe()

Prevent NULL dereference if kmalloc() fails. Also clean up if
of_mdiobus_register() returns an error.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
arch/powerpc/platforms/82xx/ep8248e.c