diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-05-09 01:18:31 +0400 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-12-22 02:41:49 +0300 |
commit | 3edcfb2937054fb546ecf3a8883675751db16c6f (patch) | |
tree | 89a916d723601680c70e0289eedf6f58ad397281 /arch/arm/mach-ixp4xx/ixp4xx_qmgr.c | |
parent | 221b3d60cbb2740ec7d46a4f1ea6d3318a112e51 (diff) | |
download | linux-3edcfb2937054fb546ecf3a8883675751db16c6f.tar.xz |
IXP4xx: check for queue being empty in qmgr_release_queue().
Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Diffstat (limited to 'arch/arm/mach-ixp4xx/ixp4xx_qmgr.c')
-rw-r--r-- | arch/arm/mach-ixp4xx/ixp4xx_qmgr.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/arm/mach-ixp4xx/ixp4xx_qmgr.c b/arch/arm/mach-ixp4xx/ixp4xx_qmgr.c index c6cb069a5a83..988bc1bbf4f2 100644 --- a/arch/arm/mach-ixp4xx/ixp4xx_qmgr.c +++ b/arch/arm/mach-ixp4xx/ixp4xx_qmgr.c @@ -199,6 +199,10 @@ void qmgr_release_queue(unsigned int queue) spin_unlock_irq(&qmgr_lock); module_put(THIS_MODULE); + + while ((addr = qmgr_get_entry(queue))) + printk(KERN_ERR "qmgr: released queue %d not empty: 0x%08X\n", + queue, addr); #if DEBUG printk(KERN_DEBUG "qmgr: released queue %i\n", queue); #endif |