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 270-275 Link Here
270
	old_len = PAGE_ALIGN(old_len);
270
	old_len = PAGE_ALIGN(old_len);
271
	new_len = PAGE_ALIGN(new_len);
271
	new_len = PAGE_ALIGN(new_len);
272
272
273
	/* Don't allow the degenerate cases */
274
	if (!(old_len | new_len))
275
		goto out;
276
273
	/* new_addr is only valid if MREMAP_FIXED is specified */
277
	/* new_addr is only valid if MREMAP_FIXED is specified */
274
	if (flags & MREMAP_FIXED) {
278
	if (flags & MREMAP_FIXED) {
275
		if (new_addr & ~PAGE_MASK)
279
		if (new_addr & ~PAGE_MASK)

Return to bug 37292