amd_iommu: fix lock imbalance
authorJiri Slaby <jirislaby@gmail.com>
Thu, 28 May 2009 07:54:48 +0000 (09:54 +0200)
committerJoerg Roedel <joerg.roedel@amd.com>
Wed, 3 Jun 2009 08:34:55 +0000 (10:34 +0200)
commit367d04c4ec02dad34d80452e32e3370db7fb6fee
treec6be71774b788662618c45470fc02b85e1797e26
parentc1eee67b2d8464781f5868a34168df61e40e85a6
amd_iommu: fix lock imbalance

In alloc_coherent there is an omitted unlock on the path where mapping
fails. Add the unlock.

[ Impact: fix lock imbalance in alloc_coherent ]

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu.c