diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2016-07-15 14:09:13 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-07-19 12:01:47 +0800 |
commit | e514cc0a492a3f39ef71b31590a7ef67537ee04b (patch) | |
tree | 1c6831264fb290aa4f54f25f318deadc7d5257e9 /drivers/crypto/marvell | |
parent | a6d7bfd0ff21f258913dd5e626d2bd70ab3942df (diff) | |
download | linux-stable-e514cc0a492a3f39ef71b31590a7ef67537ee04b.tar.gz linux-stable-e514cc0a492a3f39ef71b31590a7ef67537ee04b.tar.bz2 linux-stable-e514cc0a492a3f39ef71b31590a7ef67537ee04b.zip |
crypto: nx - off by one bug in nx_of_update_msc()
The props->ap[] array is defined like this:
struct alg_props ap[NX_MAX_FC][NX_MAX_MODE][3];
So we can see that if msc->fc and msc->mode are == to NX_MAX_FC or
NX_MAX_MODE then we're off by one.
Fixes: ae0222b7289d ('powerpc/crypto: nx driver code supporting nx encryption')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/marvell')
0 files changed, 0 insertions, 0 deletions