]> err.no Git - linux-2.6/blobdiff - drivers/net/wan/cycx_x25.c
Pull osi into release branch
[linux-2.6] / drivers / net / wan / cycx_x25.c
index 016b3ff3ea5e5cc36874a644ede970036ba7256b..a8af28b273d3f162f2394698990891713b57cbab 100644 (file)
@@ -376,11 +376,10 @@ static int cycx_wan_new_if(struct wan_device *wandev, struct net_device *dev,
        }
 
        /* allocate and initialize private data */
-       chan = kmalloc(sizeof(struct cycx_x25_channel), GFP_KERNEL);
+       chan = kzalloc(sizeof(struct cycx_x25_channel), GFP_KERNEL);
        if (!chan)
                return -ENOMEM;
 
-       memset(chan, 0, sizeof(*chan));
        strcpy(chan->name, conf->name);
        chan->card = card;
        chan->link = conf->port;