summaryrefslogtreecommitdiff
path: root/drivers/dahdi/xpp/xpp_dahdi.c
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-01-30 18:14:49 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2011-01-30 18:14:49 +0000
commitbfc20297e40a75d164d1cb22a971aecee537e200 (patch)
tree11867682e0c5acae404557dcd91a98a10b2448a6 /drivers/dahdi/xpp/xpp_dahdi.c
parent524aa2ad320cd79aa3be339098076c0abe9fb276 (diff)
xpp: Use our KZALLOC/KZFREE
Signed-off-by: Oron Peled <oron@actcom.co.il> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@9712 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'drivers/dahdi/xpp/xpp_dahdi.c')
-rw-r--r--drivers/dahdi/xpp/xpp_dahdi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/dahdi/xpp/xpp_dahdi.c b/drivers/dahdi/xpp/xpp_dahdi.c
index ba36c80..397ab91 100644
--- a/drivers/dahdi/xpp/xpp_dahdi.c
+++ b/drivers/dahdi/xpp/xpp_dahdi.c
@@ -510,7 +510,7 @@ static void phonedev_cleanup(xpd_t *xpd)
for (x = 0; x < phonedev->channels; x++) {
if (phonedev->chans[x]) {
- kfree(phonedev->chans[x]);
+ KZFREE(phonedev->chans[x]);
}
}
}
@@ -531,7 +531,7 @@ __must_check static int phonedev_init(xpd_t *xpd, const xproto_table_t *proto_ta
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;
}