Gustavo A. R. Silva d71375499d rapidio/rio_mport_cdev: use array_size() helper in copy_{from,to}_user()
Use array_size() helper instead of the open-coded version in
copy_{from,to}_user().  These sorts of multiplication factors need to be
wrapped in array_size().

This issue was found with the help of Coccinelle and, audited and fixed
manually.

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Cc: Matt Porter <mporter@kernel.crashing.org>
Cc: Alexandre Bounine <alex.bou9@gmail.com>
Link: http://lkml.kernel.org/r/20200616183050.GA31840@embeddedor
Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2020-08-12 10:58:01 -07:00
..
2020-08-06 18:09:34 -07:00
2020-08-02 18:26:51 +03:00
2020-08-07 18:48:15 -07:00
2020-08-06 10:54:07 -07:00
2020-08-07 10:33:50 -07:00
2020-07-27 11:49:37 +02:00
2020-08-10 19:07:44 -07:00
2020-08-06 09:26:10 -07:00
2020-08-05 13:13:57 -07:00
2020-08-10 19:07:44 -07:00
2020-08-05 19:24:27 -07:00
2020-08-07 10:33:50 -07:00
2020-08-10 19:07:44 -07:00
2020-08-07 18:48:15 -07:00
2020-08-09 12:38:51 -07:00
2020-08-05 13:23:24 -07:00
2020-08-07 18:48:15 -07:00
2020-08-07 10:33:50 -07:00
2020-08-05 11:12:34 -07:00
2020-08-06 10:54:07 -07:00
2020-08-07 18:48:15 -07:00
2020-07-23 09:52:10 +02:00
2020-08-07 18:48:15 -07:00
2020-07-23 09:12:15 +02:00
2020-08-06 14:27:31 -07:00
2020-08-07 18:48:15 -07:00
2020-08-06 14:56:11 -07:00
2020-08-07 13:00:53 -07:00
2020-08-06 14:56:11 -07:00
2020-08-09 14:10:26 -07:00