commit | b05d4c576b697b9f462b9c532c997171d5c3b067 | [log] [tgz] |
---|---|---|
author | Ira Weiny <ira.weiny@intel.com> | Tue May 25 10:24:28 2021 -0700 |
committer | Dan Williams <dan.j.williams@intel.com> | Wed Jul 07 22:10:04 2021 -0700 |
tree | 78caf3c0f16a323d5aca440d72d20e1917be6514 | |
parent | 44788591c3cfb81d9315b8ee5c2076e51bfe8a39 [diff] |
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>