mm/memory_hotplug.c: fix return value of online_pages()
authorToshi Kani <toshi.kani@hp.com>
Mon, 8 Jul 2013 23:00:41 +0000 (16:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 9 Jul 2013 17:33:25 +0000 (10:33 -0700)
commit0a1be15097a5f5ee8cbaf7cf0a55146363db0e4d
treef8fde1ec945694785aabe11b3f0e9f3e5dff3270
parent5f12733e9d976132e6cbbae9d08f71406fdacdfb
mm/memory_hotplug.c: fix return value of online_pages()

online_pages() is called from memory_block_action() when a user requests
to online a memory block via sysfs.  This function needs to return a
proper error value in case of error.

Signed-off-by: Toshi Kani <toshi.kani@hp.com>
Cc: Yasuaki Ishimatsu <isimatu.yasuaki@jp.fujitsu.com>
Cc: Tang Chen <tangchen@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memory_hotplug.c