]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/usb/host/sl811_cs.c
[SCSI] transport_class: BUG if we can't release the attribute container
[linux-2.6-omap-h63xx.git] / drivers / usb / host / sl811_cs.c
index 2d0e73b200996571a40249eb1181687425153ee1..5da63f5350053eed6edff1a39824580ed25e83b1 100644 (file)
@@ -278,10 +278,9 @@ static int sl811_cs_probe(struct pcmcia_device *link)
 {
        local_info_t *local;
 
-       local = kmalloc(sizeof(local_info_t), GFP_KERNEL);
+       local = kzalloc(sizeof(local_info_t), GFP_KERNEL);
        if (!local)
                return -ENOMEM;
-       memset(local, 0, sizeof(local_info_t));
        local->p_dev = link;
        link->priv = local;