]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
device-dax: Fix default return code of range_parse()
authorShiyang Ruan <ruansy.fnst@cn.fujitsu.com>
Tue, 26 Jan 2021 02:13:31 +0000 (10:13 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 15 Mar 2021 14:09:32 +0000 (15:09 +0100)
commite3840934559871731c0f787aa9a3f5ddc4dadb42
treeabf925c862e74800bab7793b28f6ae3d65f6cfc5
parent6f814674dafa9f465b4d287c5891c89588f9abb9
device-dax: Fix default return code of range_parse()

[ Upstream commit 7323fb22f05ff1d20498d267828870a5fbbaebd6 ]

The return value of range_parse() indicates the size when it is
positive.  The error code should be negative.

Signed-off-by: Shiyang Ruan <ruansy.fnst@cn.fujitsu.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Link: https://lore.kernel.org/r/20210126021331.1059933-1-ruansy.fnst@cn.fujitsu.com
Reported-by: Zhang Qilong <zhangqilong3@huawei.com>
Fixes: 8490e2e25b5a ("device-dax: add a range mapping allocation attribute")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
drivers/dax/bus.c