aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-ixp4xx/ixp4xx_qmgr.c
diff options
context:
space:
mode:
authorKrzysztof Hałasa <khc@pm.waw.pl>2008-05-08 17:18:31 -0400
committerKrzysztof Hałasa <khc@pm.waw.pl>2008-12-21 18:41:49 -0500
commit3edcfb2937054fb546ecf3a8883675751db16c6f (patch)
tree89a916d723601680c70e0289eedf6f58ad397281 /arch/arm/mach-ixp4xx/ixp4xx_qmgr.c
parent221b3d60cbb2740ec7d46a4f1ea6d3318a112e51 (diff)
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.c4
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)
199 spin_unlock_irq(&qmgr_lock); 199 spin_unlock_irq(&qmgr_lock);
200 200
201 module_put(THIS_MODULE); 201 module_put(THIS_MODULE);
202
203 while ((addr = qmgr_get_entry(queue)))
204 printk(KERN_ERR "qmgr: released queue %d not empty: 0x%08X\n",
205 queue, addr);
202#if DEBUG 206#if DEBUG
203 printk(KERN_DEBUG "qmgr: released queue %i\n", queue); 207 printk(KERN_DEBUG "qmgr: released queue %i\n", queue);
204#endif 208#endif