linux/drivers/dax
Shiyang Ruan 7323fb22f0 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: 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: 8490e2e25b ("device-dax: add a range mapping allocation attribute")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2021-02-16 14:37:43 -08:00
..
hmem dax/hmem: introduce dax_hmem.region_idle parameter 2020-10-13 18:38:28 -07:00
pmem device-dax/pmem: Convert comma to semicolon 2020-12-15 21:58:57 -08:00
bus.c device-dax: Fix default return code of range_parse() 2021-02-16 14:37:43 -08:00
bus.h mm/memremap_pages: convert to 'struct range' 2020-10-13 18:38:28 -07:00
dax-private.h device-dax: add an 'align' attribute 2020-10-13 18:38:28 -07:00
device.c vm_ops: rename .split() callback to .may_split() 2020-12-15 12:13:41 -08:00
Kconfig mm: fix phys_to_target_node() and memory_add_physaddr_to_nid() exports 2020-11-22 10:48:22 -08:00
kmem.c device-dax/kmem: use struct_size() 2020-12-15 12:13:38 -08:00
Makefile ACPI: HMAT: refactor hmat_register_target_device to hmem_register_device 2020-10-13 18:38:27 -07:00
super.c device-dax/core: Fix memory leak when rmmod dax.ko 2020-12-15 22:03:52 -08:00