OSDN Git Service

fbcon: Use array3_size() helper in scr_memcpyw()
authorGustavo A. R. Silva <gustavoars@kernel.org>
Mon, 15 Jun 2020 23:15:42 +0000 (18:15 -0500)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Fri, 10 Jul 2020 14:17:21 +0000 (16:17 +0200)
commitfcf918b966622c276749503ef9872419265af6a4
treed6bf1280c7ae3cd8436d37d92303d2f0eb03fd5e
parentcd7946c528fada46d37a32482b9ee3c201329c13
fbcon: Use array3_size() helper in scr_memcpyw()

Use array3_size() helper instead of the open-coded version in scr_memcpyw()
and scr_memsetw(). These sorts of multiplication factors need to be wrapped
in array3_size().

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

Addresses-KSPP-ID: https://github.com/KSPP/linux/issues/83
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200615231542.GA20470@embeddedor
drivers/video/fbdev/core/fbcon.c