mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[S390] monwriter kzalloc size.
Fix length on kzalloc for data buffer so as to not overwrite unallocated storage. Signed-off-by: Melissa Howland <[email protected]> Signed-off-by: Martin Schwidefsky <[email protected]>
This commit is contained in:
parent
08983787d2
commit
715d854bc2
1 changed files with 1 additions and 1 deletions
|
|
@ -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(monbuf->hdr.datalen,
|
||||
monbuf->data = kzalloc(monhdr->datalen,
|
||||
GFP_KERNEL | GFP_DMA);
|
||||
if (!monbuf->data) {
|
||||
kfree(monbuf);
|
||||
|
|
|
|||
Loading…
Reference in a new issue