summaryrefslogtreecommitdiff
path: root/drivers/char/ppdev.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-07-05 01:20:41 +0300
committerDave Airlie <airlied@redhat.com>2018-07-10 06:50:31 +0300
commit572d8fda26fecbb6bbb63e917b5610c7157cde96 (patch)
tree77cf84ee30d53749be147be86cdb544d92519938 /drivers/char/ppdev.c
parent8fb8876b2d1432b352c96add3adefa28d2754672 (diff)
downloadlinux-572d8fda26fecbb6bbb63e917b5610c7157cde96.tar.xz
char: amd64-agp: Use 64-bit arithmetic instead of 32-bit
Cast *tmp* and *nb_base* to u64 in order to give the compiler complete information about the proper arithmetic to use. Notice that such variables are used in contexts that expect expressions of type u64 (64 bits, unsigned) and the following expressions are currently being evaluated using 32-bit arithmetic: tmp << 25 nb_base << 25 Addresses-Coverity-ID: 200586 ("Unintentional integer overflow") Addresses-Coverity-ID: 200587 ("Unintentional integer overflow") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/char/ppdev.c')
0 files changed, 0 insertions, 0 deletions