* PATCH: 2.6.10 - scsi ioctls warnings
@ 2004-12-26 23:46 Alan Cox
0 siblings, 0 replies; only message in thread
From: Alan Cox @ 2004-12-26 23:46 UTC (permalink / raw)
To: torvalds, Linux Kernel Mailing List
SCSI ioctls can ask for a lot of memory and fail. We don't need to vomit
in the log file for this case. Again taken from the Red Hat minor
patches applied for FC3.
Signed-off-by: Alan Cox <alan@redhat.com>
Original-patch: Arjan van de Ven <arjanv@redhat.com>
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla-2.6.10/drivers/block/scsi_ioctl.c linux-2.6.10/drivers/block/scsi_ioctl.c
--- linux.vanilla-2.6.10/drivers/block/scsi_ioctl.c 2004-12-25 21:15:34.000000000 +0000
+++ linux-2.6.10/drivers/block/scsi_ioctl.c 2004-12-26 17:27:50.889059496 +0000
@@ -356,7 +356,7 @@
bytes = max(in_len, out_len);
if (bytes) {
- buffer = kmalloc(bytes, q->bounce_gfp | GFP_USER);
+ buffer = kmalloc(bytes, q->bounce_gfp | GFP_USER| __GFP_NOWARN);
if (!buffer)
return -ENOMEM;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-12-27 0:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-26 23:46 PATCH: 2.6.10 - scsi ioctls warnings Alan Cox
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®