bcachefs: Fix copy_to_user() usage in flush_buf()
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 19 Sep 2023 21:09:22 +0000 (17:09 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:10:14 +0000 (17:10 -0400)
commitf7f6943a8c6dccbd085600bbb7bae4f6f6047dc4
tree1ad07be7dbe50d411a45dfaab624a28a64a9c5fb
parent3e55189b504f961e68e631b72a2ed71991397ef9
bcachefs: Fix copy_to_user() usage in flush_buf()

copy_to_user() returns the number of bytes successfully copied - not an
errcode.

Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/debug.c