]> git.baikalelectronics.ru Git - kernel.git/commit
drm/pl111: Use 64-bit arithmetic instead of 32-bit
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Wed, 4 Jul 2018 14:22:55 +0000 (09:22 -0500)
committerEric Anholt <eric@anholt.net>
Tue, 17 Jul 2018 18:25:18 +0000 (11:25 -0700)
commit9dae3609e1c7104692b7f7c89cc2270ea8e5d8ab
tree959d23a0cf451dcc61a5d0a1381911c68adb8902
parent1214eb5e9a02c378f09ebab97d2a196fa655d95d
drm/pl111: Use 64-bit arithmetic instead of 32-bit

Add suffix ULL to constant 1000 in order to give the compiler complete
information about the proper arithmetic to use.

Notice that such constant is used in a context that expects an
expression of type u64 (64 bits, unsigned) and the following
expression is currently being evaluated using 32-bit arithmetic:

mode->clock * 1000

Addresses-Coverity-ID: 1466139 ("Unintentional integer overflow")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20180704142255.GA8614@embeddedor.com
drivers/gpu/drm/pl111/pl111_display.c