powerpc: kmalloc failure ignored in vio_build_iommu_table()
authorroel kluin <roel.kluin@gmail.com>
Wed, 9 Sep 2009 05:02:24 +0000 (05:02 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 24 Sep 2009 05:31:38 +0000 (15:31 +1000)
commit0f3372741f2de8dc85a60be737b519a47b395b85
treede1232bba74a72ceeece8967a257e4608eca5ce5
parent254be490f257fc3f76ca5f869ac8d107b3827025
powerpc: kmalloc failure ignored in vio_build_iommu_table()

Prevent NULL dereference if kmalloc() fails.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/kernel/vio.c