All of lore.kernel.org
 help / color / mirror / Atom feed
* [S390] monwriter kzalloc size.
@ 2006-10-11 13:35 Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2006-10-11 13:35 UTC (permalink / raw)
  To: linux-kernel, melissah

From: Melissa Howland <melissah@us.ibm.com>

[S390] monwriter kzalloc size.

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 |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

diff -urpN linux-2.6/drivers/s390/char/monwriter.c linux-2.6-patched/drivers/s390/char/monwriter.c
--- linux-2.6/drivers/s390/char/monwriter.c	2006-10-11 15:23:22.000000000 +0200
+++ linux-2.6-patched/drivers/s390/char/monwriter.c	2006-10-11 15:23:36.000000000 +0200
@@ -110,7 +110,7 @@ static int monwrite_new_hdr(struct mon_p
 		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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-11 13:35 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-10-11 13:35 [S390] monwriter kzalloc size Martin Schwidefsky

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.