Browse Source

IXP4xx: check for queue being empty in qmgr_release_queue().

Signed-off-by: Krzysztof Hałasa <khc@pm.waw.pl>
Krzysztof Hałasa 17 years ago
parent
commit
3edcfb2937
1 changed files with 4 additions and 0 deletions
  1. 4 0
      arch/arm/mach-ixp4xx/ixp4xx_qmgr.c

+ 4 - 0
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