From: Krzysztof Hałasa Date: Thu, 8 May 2008 21:18:31 +0000 (+0200) Subject: IXP4xx: check for queue being empty in qmgr_release_queue(). X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=3edcfb2937054fb546ecf3a8883675751db16c6f;p=deliverable%2Flinux.git IXP4xx: check for queue being empty in qmgr_release_queue(). Signed-off-by: Krzysztof Hałasa --- 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