MLK-20216-1: drm/imx/dcss: fix suspicious sign extension
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Wed, 14 Nov 2018 12:43:13 +0000 (14:43 +0200)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commite354c3392bb58985fb3af9b6e3701f28a6361af9
tree080d5ec19930d8ed1de23596243a34d42cf5a850
parent0bda01c365075fa7eaf96d2c916ec7bc175df09f
MLK-20216-1: drm/imx/dcss: fix suspicious sign extension

This addresses Coverity issues related to "Suspicious sign extension"
when an u16 is promoted to int (32bit signed) and then to u64. If the
resulting int is greater than 0x7fffffff the upper bits of the u64 will
all be 1.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/imx/dcss/dcss-dpr.c
drivers/gpu/imx/dcss/dcss-ss.c