iommu/amd: Fix possible use after free in get_irq_table()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 2 Oct 2012 08:34:40 +0000 (11:34 +0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Tue, 2 Oct 2012 10:08:07 +0000 (12:08 +0200)
commit821f0f68ca5fa93c757a892129392e751a7407a3
treec943c1462eba7bbc0355dbd6bbbf6b49c501d0ac
parentbdddadcb0783b965f524b6f43c475390f5f76765
iommu/amd: Fix possible use after free in get_irq_table()

We should return NULL on error instead of the freed pointer.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
drivers/iommu/amd_iommu.c