diff options
author | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-05-08 23:18:31 +0200 |
---|---|---|
committer | Krzysztof Hałasa <khc@pm.waw.pl> | 2008-12-22 00:41:49 +0100 |
commit | 3edcfb2937054fb546ecf3a8883675751db16c6f (patch) | |
tree | 89a916d723601680c70e0289eedf6f58ad397281 /arch/arm/mach-ixp4xx | |
parent | ucc_geth: Remove UGETH_FILTERING dead code (diff) | |
download | linux-3edcfb2937054fb546ecf3a8883675751db16c6f.tar.xz linux-3edcfb2937054fb546ecf3a8883675751db16c6f.zip |
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')
-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 |