]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: mv_cesa - ensure backlog is initialised
authorColin Ian King <colin.king@canonical.com>
Tue, 14 Apr 2015 16:51:29 +0000 (11:51 -0500)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 21 Apr 2015 01:14:38 +0000 (09:14 +0800)
commit85cb649e04e8c3932246e53f488fc5863fdf7240
treef85773bd08746f10b9ffbf429b5f6fad8640c6cc
parentb05c7402d13c9b0c1756ad02a50a0e89791ab723
crypto: mv_cesa - ensure backlog is initialised

backlog is not initialised so in the case where
cpg->eng_st != ENGINE_IDLE it is never initialised and
hence which could lead to an illegal memory dereference
in the statement:

  backlog->complete(backlog, -EINPROGRESS);

Discovered with cppcheck static analsys:
[drivers/crypto/mv_cesa.c:616]:
   (error) Uninitialized variable: backlog

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/mv_cesa.c