diff options
Diffstat (limited to 'drivers/s390/char/fs3270.c')
-rw-r--r-- | drivers/s390/char/fs3270.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/char/fs3270.c b/drivers/s390/char/fs3270.c index 5f6fa4c67843..a6415377bc73 100644 --- a/drivers/s390/char/fs3270.c +++ b/drivers/s390/char/fs3270.c | |||
@@ -368,10 +368,9 @@ fs3270_alloc_view(void) | |||
368 | { | 368 | { |
369 | struct fs3270 *fp; | 369 | struct fs3270 *fp; |
370 | 370 | ||
371 | fp = (struct fs3270 *) kmalloc(sizeof(struct fs3270),GFP_KERNEL); | 371 | fp = kzalloc(sizeof(struct fs3270),GFP_KERNEL); |
372 | if (!fp) | 372 | if (!fp) |
373 | return ERR_PTR(-ENOMEM); | 373 | return ERR_PTR(-ENOMEM); |
374 | memset(fp, 0, sizeof(struct fs3270)); | ||
375 | fp->init = raw3270_request_alloc(0); | 374 | fp->init = raw3270_request_alloc(0); |
376 | if (IS_ERR(fp->init)) { | 375 | if (IS_ERR(fp->init)) { |
377 | kfree(fp); | 376 | kfree(fp); |