summaryrefslogtreecommitdiff
path: root/fs/bcachefs/snapshot.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2023-09-15 15:55:23 +0300
committerKent Overstreet <kent.overstreet@linux.dev>2023-10-23 00:10:14 +0300
commit1f12900ab52304a7c41714b6ad86990eb428fbc9 (patch)
treeacca1b733982384dbfb11d88643589c4fcbbbd3d /fs/bcachefs/snapshot.c
parentb6c22147e0fcfd16e672093178d940db3ea6923e (diff)
downloadlinux-1f12900ab52304a7c41714b6ad86990eb428fbc9.tar.xz
bcachefs: fs-ioctl: Fix copy_to_user() error code
The copy_to_user() function returns the number of bytes that it wasn't able to copy but we want to return -EFAULT to the user. Fixes: e0750d947352 ("bcachefs: Initial commit") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/snapshot.c')
0 files changed, 0 insertions, 0 deletions