Commit b4d747e0 authored by Srinu Gorle's avatar Srinu Gorle Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: avoid crash due to division by zero



There is a crash due to division by zero in a very
corner case while printing statistics when debug logs
are enabled. Avoid the crash by checking for divisor
is non zero before division operation.

Change-Id: Ideaa626303bc7955f41851f068bbd0e19d3c6b90
Signed-off-by: default avatarSrinu Gorle <sgorle@codeaurora.org>
parent 6108ebdb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment