[svn-commits] tzafrir: linux/trunk r4477 - /linux/trunk/drivers/dahdi/dahdi-base.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Sun Jun 29 09:02:35 CDT 2008
Author: tzafrir
Date: Sun Jun 29 09:02:35 2008
New Revision: 4477
URL: http://svn.digium.com/view/dahdi?view=rev&rev=4477
Log:
Fix crash in dahdi-base on channel close. From Zaptel r4348.
Modified:
linux/trunk/drivers/dahdi/dahdi-base.c
Modified: linux/trunk/drivers/dahdi/dahdi-base.c
URL: http://svn.digium.com/view/dahdi/linux/trunk/drivers/dahdi/dahdi-base.c?view=diff&rev=4477&r1=4476&r2=4477
==============================================================================
--- linux/trunk/drivers/dahdi/dahdi-base.c (original)
+++ linux/trunk/drivers/dahdi/dahdi-base.c Sun Jun 29 09:02:35 2008
@@ -2451,7 +2451,9 @@
close_channel(chans[unit]);
if (chans[unit]->span && chans[unit]->span->close)
res = chans[unit]->span->close(chans[unit]);
- clear_bit(DAHDI_FLAGBIT_OPEN, &chans[unit]->flags);
+ /* The channel might be destroyed by low-level driver span->close() */
+ if(chans[unit])
+ clear_bit(DAHDI_FLAGBIT_OPEN, &chans[unit]->flags);
} else
res = -ENXIO;
return res;
More information about the svn-commits
mailing list