[svn-commits] kpfleming: trunk r1342 - /trunk/zttranscode.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Aug 22 14:03:04 MST 2006


Author: kpfleming
Date: Tue Aug 22 16:03:03 2006
New Revision: 1342

URL: http://svn.digium.com/view/zaptel?rev=1342&view=rev
Log:
fix for kernel weirdness when transcode devices are closed

Modified:
    trunk/zttranscode.c

Modified: trunk/zttranscode.c
URL: http://svn.digium.com/view/zaptel/trunk/zttranscode.c?rev=1342&r1=1341&r2=1342&view=diff
==============================================================================
--- trunk/zttranscode.c (original)
+++ trunk/zttranscode.c Tue Aug 22 16:03:03 2006
@@ -199,8 +199,16 @@
 
 static void ztc_release(struct zt_transcoder_channel *ztc)
 {
+	struct zt_transcode_header *zth = ztc->tch;
+	struct page *page;
+
 	if (!ztc)
 		return;
+
+	for (page = virt_to_page(zth);
+	     page < virt_to_page((unsigned long) zth + sizeof(*zth));
+	     page++)
+		ClearPageReserved(page);
 
 	ztc->flags &= ~(ZT_TC_FLAG_BUSY);
 	if (ztc->tch)



More information about the svn-commits mailing list