Skip to content
Snippets Groups Projects
Commit 7323fb22 authored by Shiyang Ruan's avatar Shiyang Ruan Committed by Dan Williams
Browse files

device-dax: Fix default return code of range_parse()


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

Signed-off-by: default avatarShiyang Ruan <ruansy.fnst@cn.fujitsu.com>
Reviewed-by: default avatarJoao Martins <joao.m.martins@oracle.com>
Link: https://lore.kernel.org/r/20210126021331.1059933-1-ruansy.fnst@cn.fujitsu.com


Reported-by: default avatarZhang Qilong <zhangqilong3@huawei.com>
Fixes: 8490e2e2 ("device-dax: add a range mapping allocation attribute")
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent 1048ba83
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment