aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/char/monwriter.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/s390/char/monwriter.c')
-rw-r--r--drivers/s390/char/monwriter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/char/monwriter.c b/drivers/s390/char/monwriter.c
index 4362ff260244..abd02ed501cb 100644
--- a/drivers/s390/char/monwriter.c
+++ b/drivers/s390/char/monwriter.c
@@ -110,7 +110,7 @@ static int monwrite_new_hdr(struct mon_private *monpriv)
110 monbuf = kzalloc(sizeof(struct mon_buf), GFP_KERNEL); 110 monbuf = kzalloc(sizeof(struct mon_buf), GFP_KERNEL);
111 if (!monbuf) 111 if (!monbuf)
112 return -ENOMEM; 112 return -ENOMEM;
113 monbuf->data = kzalloc(monbuf->hdr.datalen, 113 monbuf->data = kzalloc(monhdr->datalen,
114 GFP_KERNEL | GFP_DMA); 114 GFP_KERNEL | GFP_DMA);
115 if (!monbuf->data) { 115 if (!monbuf->data) {
116 kfree(monbuf); 116 kfree(monbuf);