]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mm: Fix compiler warning in copy_page_range
authorHaggai Eran <haggaie@mellanox.com>
Thu, 13 Sep 2012 00:58:58 +0000 (10:58 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 18 Sep 2012 06:04:29 +0000 (16:04 +1000)
commit0b84592f458b4e8567aa7d803aff382c1d3b64fd
treedcf6a4a31b02366742151518f28f21fefedc5932
parentdcb1b64b7e8061ef92b498cc456cee5923ff5ecc
mm: Fix compiler warning in copy_page_range

This patch fixes the warning about mmun_start/end used uninitialized in
copy_page_range, by initializing them regardless of whether the notifiers are
actually called.  It also makes sure the vm_flags in copy_page_range are only
read once.

Signed-off-by: Haggai Eran <haggaie@mellanox.com>
Reviewed-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/memory.c