projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0898378
)
[S390] monwriter kzalloc size.
author
Melissa Howland
<melissah@us.ibm.com>
Wed, 11 Oct 2006 13:31:34 +0000
(15:31 +0200)
committer
Martin Schwidefsky
<schwidefsky@de.ibm.com>
Wed, 11 Oct 2006 13:31:34 +0000
(15:31 +0200)
Fix length on kzalloc for data buffer so as to not overwrite
unallocated storage.
Signed-off-by: Melissa Howland <melissah@us.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
drivers/s390/char/monwriter.c
patch
|
blob
|
history
diff --git
a/drivers/s390/char/monwriter.c
b/drivers/s390/char/monwriter.c
index 4362ff2602446f67c3209eeb92e267f7bd5b62c4..abd02ed501cbe52cab031dadebf8087bf8290cf4 100644
(file)
--- 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)
monbuf = kzalloc(sizeof(struct mon_buf), GFP_KERNEL);
if (!monbuf)
return -ENOMEM;
- monbuf->data = kzalloc(mon
buf->hdr.
datalen,
+ monbuf->data = kzalloc(mon
hdr->
datalen,
GFP_KERNEL | GFP_DMA);
if (!monbuf->data) {
kfree(monbuf);