Re: [PATCH] crypto: cavium/cpt: Fix couple of static checker errors

From: Herbert Xu
Date: Mon Feb 27 2017 - 05:59:32 EST


On Wed, Feb 15, 2017 at 12:42:19PM +0000, George Cherian wrote:
> Fix the following smatch errors
> cptvf_reqmanager.c:333 do_post_process() warn: variable dereferenced
> before check 'cptvf'
> cptvf_main.c:825 cptvf_remove() error: we previously assumed 'cptvf'
> could be null
>
> Reported-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>
> Signed-off-by: George Cherian <george.cherian@xxxxxxxxxx>

Patch applied. Thanks.
--
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt