diff options
author | 2021-02-19 12:54:38 +0300 | |
---|---|---|
committer | 2021-02-19 07:40:23 -0800 | |
commit | 58294927f468a428c7a1ba09cf986fdca14a2747 (patch) | |
tree | 33254d7e5091702c416c619cfd2acb32f87e3685 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | MAINTAINERS: Add maintainers of the CXL driver (diff) | |
download | wireguard-linux-58294927f468a428c7a1ba09cf986fdca14a2747.tar.xz wireguard-linux-58294927f468a428c7a1ba09cf986fdca14a2747.zip |
cxl/mem: Return -EFAULT if copy_to_user() fails
The copy_to_user() function returns the number of bytes remaining to be
copied, but we want to return -EFAULT if the copy doesn't complete.
Fixes: b754ffbbc0ee ("cxl/mem: Add basic IOCTL interface")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/YC+K3kgzqm20zCWY@mwanda
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions