diff options
Diffstat (limited to 'drivers/s390/char/raw3270.c')
-rw-r--r-- | drivers/s390/char/raw3270.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/s390/char/raw3270.c b/drivers/s390/char/raw3270.c index 1026f2bc3185..bd06607a5dcc 100644 --- a/drivers/s390/char/raw3270.c +++ b/drivers/s390/char/raw3270.c | |||
@@ -115,10 +115,9 @@ raw3270_request_alloc(size_t size) | |||
115 | struct raw3270_request *rq; | 115 | struct raw3270_request *rq; |
116 | 116 | ||
117 | /* Allocate request structure */ | 117 | /* Allocate request structure */ |
118 | rq = kmalloc(sizeof(struct raw3270_request), GFP_KERNEL | GFP_DMA); | 118 | rq = kzalloc(sizeof(struct raw3270_request), GFP_KERNEL | GFP_DMA); |
119 | if (!rq) | 119 | if (!rq) |
120 | return ERR_PTR(-ENOMEM); | 120 | return ERR_PTR(-ENOMEM); |
121 | memset(rq, 0, sizeof(struct raw3270_request)); | ||
122 | 121 | ||
123 | /* alloc output buffer. */ | 122 | /* alloc output buffer. */ |
124 | if (size > 0) { | 123 | if (size > 0) { |