Skip to contentSkip to conversation

create_buffers silently fails for size > PAGE_SIZE

PATCH New Daniel Phillips 1 participant 1 message Feb 6, 2001

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 create_buffers silently fails for size > PAGE_SIZE

This is in the Kernel Janitor category, no critical bugs are caused by this. I also wonder why we have NR_SIZES = 7.

buffer.c renamed from 2.4.1.clean/fs/buffer.c +1 -0
@@ -1296,6 +1296,7 @@
 {
 	struct buffer_head *bh, *head;
 	long offset;
+	if (size > PAGE_SIZE) BUG();
 
 try_again:
 	head = NULL;
Signature · 5 lines
Daniel
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
Please read the FAQ at http://www.tux.org/lkml/