linux/drivers/dax
Ira Weiny b05d4c576b dax: Ensure errno is returned from dax_direct_access
If the caller specifies a negative nr_pages that is an invalid
parameter.

Return -EINVAL to ensure callers get an errno if they want to check it.

Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Link: https://lore.kernel.org/r/20210525172428.3634316-4-ira.weiny@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
2021-07-07 22:10:04 -07:00
..
hmem dax/hmem: introduce dax_hmem.region_idle parameter 2020-10-13 18:38:28 -07:00
pmem libnvdimm: Make remove callback return void 2021-02-16 19:35:29 -08:00
bus.c dax: avoid -Wempty-body warnings 2021-03-22 09:20:06 -07:00
bus.h dax-device: Make remove callback return void 2021-02-16 19:45:13 -08:00
dax-private.h device-dax: add an 'align' attribute 2020-10-13 18:38:28 -07:00
device.c device-dax: Drop an empty .remove callback 2021-02-16 19:44:40 -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 dax-device: Make remove callback return void 2021-02-16 19:45:13 -08:00
Makefile ACPI: HMAT: refactor hmat_register_target_device to hmem_register_device 2020-10-13 18:38:27 -07:00
super.c dax: Ensure errno is returned from dax_direct_access 2021-07-07 22:10:04 -07:00