linux 2.6.16.38 w/ vs2.0.3-rc1
[linux-2.6.git] / drivers / s390 / char / fs3270.c
index a641537..5f6fa4c 100644 (file)
@@ -368,9 +368,10 @@ fs3270_alloc_view(void)
 {
        struct fs3270 *fp;
 
-       fp = kzalloc(sizeof(struct fs3270),GFP_KERNEL);
+       fp = (struct fs3270 *) kmalloc(sizeof(struct fs3270),GFP_KERNEL);
        if (!fp)
                return ERR_PTR(-ENOMEM);
+       memset(fp, 0, sizeof(struct fs3270));
        fp->init = raw3270_request_alloc(0);
        if (IS_ERR(fp->init)) {
                kfree(fp);