mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-09-28 19:20:30 +00:00
media: dib7000p: Fix potential division by zero
[ Upstream commita1db7b2c55] Variable loopdiv can be assigned 0, then it is used as a denominator, without checking it for 0. Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes:713d54a8bd("[media] DiB7090: add support for the dib7090 based") Signed-off-by: Daniil Dulov <d.dulov@aladdin.ru> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> [hverkuil: (bw != NULL) -> bw] Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
90e0ea8e9b
commit
323ee5fc98
1 changed files with 1 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue