From: Naoya Horiguchi Date: Wed, 11 Sep 2013 21:22:16 +0000 (-0700) Subject: mbind: add BUG_ON(!vma) in new_vma_page() X-Git-Tag: v3.12-rc1~52^2~200 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bf598d863e3c741d47e3178d645f04c9d6c186c;p=pandora-kernel.git mbind: add BUG_ON(!vma) in new_vma_page() new_vma_page() is called only by page migration called from do_mbind(), where pages to be migrated are queued into a pagelist by queue_pages_range(). queue_pages_range() confirms that a queued page belongs to some vma, so !vma case is not supposed to be happen. This patch adds BUG_ON() to catch this unexpected case. Signed-off-by: Naoya Horiguchi Reported-by: Dan Carpenter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed