bcachefs: Use array_size() in call to copy_from_user()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 19 Dec 2023 00:26:26 +0000 (18:26 -0600)
committerKent Overstreet <kent.overstreet@linux.dev>
Mon, 1 Jan 2024 16:47:41 +0000 (11:47 -0500)
commitac19c4c3d02e19b365209d2cee409671e1fb66bb
treedd6d6df1c5fa696c45d20a97ef8df1929fd58647
parent038fecc045932171e882a4e3668208c28f66f795
bcachefs: Use array_size() in call to copy_from_user()

Use array_size() helper, instead of the open-coded version in
call to copy_from_user().

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/chardev.c