xen/unpopulated-alloc: fix error return code in fill_list()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 8 May 2021 02:19:13 +0000 (10:19 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 May 2021 08:29:51 +0000 (10:29 +0200)
commitac7825aa4fdad03016d6044df30d3c70d7967b12
tree320cda22ccdfde19d62c9a4ee6dedd81f3c29d24
parent370f182d79717beef7731667a9e177ec0ddc8d7f
xen/unpopulated-alloc: fix error return code in fill_list()

[ Upstream commit dbc03e81586fc33e4945263fd6e09e22eb4b980f ]

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.

Fixes: a4574f63edc6 ("mm/memremap_pages: convert to 'struct range'")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lore.kernel.org/r/20210508021913.1727-1-thunder.leizhen@huawei.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/xen/unpopulated-alloc.c