aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/i4l/isdn_bsdcomp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/i4l/isdn_bsdcomp.c')
-rw-r--r--drivers/isdn/i4l/isdn_bsdcomp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/isdn/i4l/isdn_bsdcomp.c b/drivers/isdn/i4l/isdn_bsdcomp.c
index 0afe442db3b0..a20f33b4a220 100644
--- a/drivers/isdn/i4l/isdn_bsdcomp.c
+++ b/drivers/isdn/i4l/isdn_bsdcomp.c
@@ -331,12 +331,10 @@ static void *bsd_alloc (struct isdn_ppp_comp_data *data)
331 * Allocate the main control structure for this instance. 331 * Allocate the main control structure for this instance.
332 */ 332 */
333 maxmaxcode = MAXCODE(bits); 333 maxmaxcode = MAXCODE(bits);
334 db = (struct bsd_db *) kmalloc (sizeof (struct bsd_db),GFP_KERNEL); 334 db = kzalloc (sizeof (struct bsd_db),GFP_KERNEL);
335 if (!db) 335 if (!db)
336 return NULL; 336 return NULL;
337 337
338 memset (db, 0, sizeof(struct bsd_db));
339
340 db->xmit = data->flags & IPPP_COMP_FLAG_XMIT; 338 db->xmit = data->flags & IPPP_COMP_FLAG_XMIT;
341 decomp = db->xmit ? 0 : 1; 339 decomp = db->xmit ? 0 : 1;
342 340