[svn-commits] tzafrir: linux/trunk r9712 - /linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Sun Jan 30 12:14:53 CST 2011


Author: tzafrir
Date: Sun Jan 30 12:14:49 2011
New Revision: 9712

URL: http://svnview.digium.com/svn/dahdi?view=rev&rev=9712
Log:
xpp: Use our KZALLOC/KZFREE

Signed-off-by: Oron Peled <oron at actcom.co.il>
Acked-by: Tzafrir Cohen <tzafrir.cohen at xorcom.com>

Modified:
    linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c

Modified: linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c
URL: http://svnview.digium.com/svn/dahdi/linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c?view=diff&rev=9712&r1=9711&r2=9712
==============================================================================
--- linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c (original)
+++ linux/trunk/drivers/dahdi/xpp/xpp_dahdi.c Sun Jan 30 12:14:49 2011
@@ -510,7 +510,7 @@
 
 	for (x = 0; x < phonedev->channels; x++) {
 		if (phonedev->chans[x]) {
-			kfree(phonedev->chans[x]);
+			KZFREE(phonedev->chans[x]);
 		}
 	}
 }
@@ -531,7 +531,7 @@
 	atomic_set(&phonedev->dahdi_registered, 0);
 	atomic_set(&phonedev->open_counter, 0);
 	for (x = 0; x < phonedev->channels; x++) {
-		if (!(phonedev->chans[x] = kmalloc(sizeof(*(phonedev->chans[x])), GFP_KERNEL))) {
+		if (!(phonedev->chans[x] = KZALLOC(sizeof(*(phonedev->chans[x])), GFP_KERNEL))) {
 			ERR("%s: Unable to allocate channel %d\n", __FUNCTION__, x);
 			goto err;
 		}




More information about the svn-commits mailing list