linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / block / paride / bpck6.c
index 41a237c..08d858a 100644 (file)
@@ -224,9 +224,10 @@ static void bpck6_log_adapter( PIA *pi, char * scratch, int verbose )
 
 static int bpck6_init_proto(PIA *pi)
 {
-       Interface *p = kzalloc(sizeof(Interface), GFP_KERNEL);
+       Interface *p = kmalloc(sizeof(Interface), GFP_KERNEL);
 
        if (p) {
+               memset(p, 0, sizeof(Interface));
                pi->private = (unsigned long)p;
                return 0;
        }