x86/PCI: add spinlock held check to 'pcibios_fwaddrmap_lookup()'
authorMyron Stowe <myron.stowe@redhat.com>
Fri, 2 Mar 2012 19:45:01 +0000 (12:45 -0700)
committerJesse Barnes <jbarnes@virtuousgeek.org>
Fri, 2 Mar 2012 20:03:58 +0000 (12:03 -0800)
commit63ab387ca0d1576edef35ef68e4b8ea5e0757b7a
treef68e3c80461c15e20c019814e557ee095e82f734
parent6748dcc269e52925993e0d68447858b41b88b4be
x86/PCI: add spinlock held check to 'pcibios_fwaddrmap_lookup()'

'pcibios_fwaddrmap_lookup()' is used to maintain FW-assigned BIOS BAR
values for reinstatement when normal resource assignment attempts
fail and must be called with the 'pcibios_fwaddrmap_lock' spinlock
held.

This patch adds a WARN_ON notification if the spinlock is not currently
held by the caller.

Signed-off-by: Myron Stowe <myron.stowe@redhat.com>
Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
arch/x86/pci/i386.c