summaryrefslogtreecommitdiff
path: root/block/blk-throttle.c
diff options
context:
space:
mode:
authorJesper Juhl <jj@chaosbits.net>2012-01-29 22:39:22 (GMT)
committerHerbert Xu <herbert@gondor.apana.org.au>2012-02-05 04:12:25 (GMT)
commit0cfdec7a65c98de6637e547a04a33969dc9c61b1 (patch)
tree052e9b64882142a535e009f647235dadb0d9f1de /block/blk-throttle.c
parent65a4a573b74f8f27e33a99c21a5a5d2fc4d82a1a (diff)
downloadlinux-fsl-qoriq-0cfdec7a65c98de6637e547a04a33969dc9c61b1.tar.xz
crypto: In crypto_add_alg(), 'exact' wants to be initialized to 0
We declare 'exact' without initializing it and then do: [...] if (strlen(p->cru_driver_name)) exact = 1; if (priority && !exact) return -EINVAL; [...] If the first 'if' is not true, then the second will test an uninitialized 'exact'. As far as I can tell, what we want is for 'exact' to be initialized to 0 (zero/false). Signed-off-by: Jesper Juhl <jj@chaosbits.net> Acked-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'block/blk-throttle.c')
0 files changed, 0 insertions, 0 deletions