Re: [PATCH] crypto: ensure backlog is initialised

2015-04-18 Thread Herbert Xu
On Tue, Apr 14, 2015 at 11:51:29AM -0500, Colin King wrote: > From: Colin Ian King > > 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(ba

[PATCH] crypto: ensure backlog is initialised

2015-04-14 Thread Colin King
From: Colin Ian King 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/cry