]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerJuergen Gross <jgross@suse.com>
Mon, 10 May 2021 07:42:25 +0000 (09:42 +0200)
commit22cd7f9609c0a1ae200462f26f5c5a2149818ea1
treeabb84c42576390514654c5244695bdd7ff46fba2
parentd0f1e156db62400a42f4fd135aa01aa854fb1202
xen/unpopulated-alloc: fix error return code in fill_list()

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

Fixes: fc1eef363427 ("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>
drivers/xen/unpopulated-alloc.c