[dahdi-commits] sruffell: linux/trunk r9038 - /linux/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the DAHDI project
dahdi-commits at lists.digium.com
Wed Jul 28 10:32:16 CDT 2010
Author: sruffell
Date: Wed Jul 28 10:32:03 2010
New Revision: 9038
URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9038
Log:
dahdi: Unlock the dahdi_span.lock when passed an invalid DAHDI_MAINT command.
Fixes the following sparse warning "warning: context imbalance in
'dahdi_ctl_ioctl' - different lock contexts for basic block". Thank you
sparse!
Modified:
linux/trunk/drivers/dahdi/dahdi-base.c
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=9038&r1=9037&r2=9038
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Wed Jul 28 10:32:03 2010
@@ -4590,6 +4590,8 @@
spin_lock_irqsave(&spans[maint.spanno]->lock, flags);
break;
default:
+ spin_unlock_irqrestore(&spans[maint.spanno]->lock,
+ flags);
module_printk(KERN_NOTICE,
"Unknown maintenance event: %d\n",
maint.command);
More information about the dahdi-commits
mailing list