summaryrefslogtreecommitdiff
path: root/drivers/remoteproc/remoteproc_virtio.c
diff options
context:
space:
mode:
authorFlorinel Iordache <florinel.iordache@nxp.com>2020-08-03 10:07:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-08-21 10:48:12 +0300
commit178c6c8d0c47e4bd97ee65474979ef695ffbc0e7 (patch)
treefb5599dda195ddeb7e28ae653f6f6a24a73394d6 /drivers/remoteproc/remoteproc_virtio.c
parent5184569002c4296c8bb94dc012b11b6ede9d9ea4 (diff)
downloadlinux-178c6c8d0c47e4bd97ee65474979ef695ffbc0e7.tar.xz
fsl/fman: use 32-bit unsigned integer
[ Upstream commit 99f47abd9f7bf6e365820d355dc98f6955a562df ] Potentially overflowing expression (ts_freq << 16 and intgr << 16) declared as type u32 (32-bit unsigned) is evaluated using 32-bit arithmetic and then used in a context that expects an expression of type u64 (64-bit unsigned) which ultimately is used as 16-bit unsigned by typecasting to u16. Fixed by using an unsigned 32-bit integer since the value is truncated anyway in the end. Fixes: 414fd46e7762 ("fsl/fman: Add FMan support") Signed-off-by: Florinel Iordache <florinel.iordache@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/remoteproc/remoteproc_virtio.c')
0 files changed, 0 insertions, 0 deletions