Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 37292 | Differences between
and this patch

Collapse All | Expand All

(-)linux/mm/mremap.c.orig (+4 lines)
Lines 315-320 Link Here
315
	old_len = PAGE_ALIGN(old_len);
315
	old_len = PAGE_ALIGN(old_len);
316
	new_len = PAGE_ALIGN(new_len);
316
	new_len = PAGE_ALIGN(new_len);
317
317
318
	/* Don't allow the degenerate cases */
319
	if (!(old_len | new_len))
320
		goto out;
321
318
	/* new_addr is only valid if MREMAP_FIXED is specified */
322
	/* new_addr is only valid if MREMAP_FIXED is specified */
319
	if (flags & MREMAP_FIXED) {
323
	if (flags & MREMAP_FIXED) {
320
		if (new_addr & ~PAGE_MASK)
324
		if (new_addr & ~PAGE_MASK)

Return to bug 37292