Skip to contentSkip to conversation

PATCH: 2.6.10 - scsi ioctls warnings

PATCH Alan Cox 1 participant 1 message Dec 27, 2004 Block layer

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

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.

Original-patch: Arjan van de Ven <[email protected]>

drivers/block/scsi_ioctl.c +1 -1
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
@@ -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;