]> git.karo-electronics.de Git - linux-beck.git/commit
crypto: omap-des - fix BUG_ON condition
authorAsaf Vertz <asaf.vertz@tandemg.com>
Mon, 5 Jan 2015 08:23:10 +0000 (10:23 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Thu, 8 Jan 2015 10:46:17 +0000 (21:46 +1100)
commit42d2e780c6239040ec29d404f87e752de3627e08
tree1eeadf3c1b7324dba54e957ee83d61e8baaa177e
parent28c29f5657e886cf89778622af3f6569329508df
crypto: omap-des - fix BUG_ON condition

dd->total is unsigned so it won't do any good to check for negative
value after subtracting instead of that we should check if the
subtracted value is bigger than him

This was partially found by using a static code analysis program
called cppcheck.

Signed-off-by: Asaf Vertz <asaf.vertz@tandemg.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/omap-des.c