diff options
author | Naoya Horiguchi | 2013-09-11 23:22:16 +0200 |
---|---|---|
committer | Linus Torvalds | 2013-09-12 00:57:50 +0200 |
commit | 0bf598d863e3c741d47e3178d645f04c9d6c186c (patch) | |
tree | 4929a438298150fa92c800ac40c337d36531a70e /mm/memblock.c | |
parent | mm/mempolicy: rename check_*range to queue_pages_*range (diff) | |
download | kernel-qcow2-linux-0bf598d863e3c741d47e3178d645f04c9d6c186c.tar.gz kernel-qcow2-linux-0bf598d863e3c741d47e3178d645f04c9d6c186c.tar.xz kernel-qcow2-linux-0bf598d863e3c741d47e3178d645f04c9d6c186c.zip |
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 <n-horiguchi@ah.jp.nec.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memblock.c')
0 files changed, 0 insertions, 0 deletions