]> www.infradead.org Git - users/dwmw2/linux.git/commit
media: saa7134: avoid a shift overflow
authorMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Wed, 2 Sep 2020 06:37:12 +0000 (08:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2020 09:12:11 +0000 (10:12 +0100)
commitba7a8eed706db7a1fe18b5150758bc5a00d8f487
tree75852cf02d97fb1f2a432febb159357a2a07e7cb
parentfa0a1c79c0028c5724d89c3d38b47ca9c322966c
media: saa7134: avoid a shift overflow

[ Upstream commit 15a36aae1ec1c1f17149b6113b92631791830740 ]

As reported by smatch:
drivers/media/pci/saa7134//saa7134-tvaudio.c:686 saa_dsp_writel() warn: should 'reg << 2' be a 64 bit type?

On a 64-bits Kernel, the shift might be bigger than 32 bits.

In real, this should never happen, but let's shut up the warning.

Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/pci/saa7134/saa7134-tvaudio.c