]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: cavium - Prevent division by zero
authorJan Glauber <jglauber@cavium.com>
Mon, 9 Apr 2018 15:45:52 +0000 (17:45 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 20 Apr 2018 16:58:35 +0000 (00:58 +0800)
commit5ddabb900a2990d673521c2b533f2596215140cc
tree5a8938ec0845cba8131a3e89e97d8e91fb255cef
parent6e2fb98f400ed2de0518764e77ff87e61f259e86
crypto: cavium - Prevent division by zero

Avoid two potential divisions by zero when calculating average
values for the zip statistics.

Signed-off-by: Jan Glauber <jglauber@cavium.com>
Reviewed-by: Robert Richter <rrichter@cavium.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/cavium/zip/zip_main.c