crypto: qat - avoid memory corruption or undefined behaviour
authorTudor Ambarus <tudor-dan.ambarus@nxp.com>
Wed, 23 Mar 2016 15:06:39 +0000 (17:06 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Tue, 5 Apr 2016 12:35:52 +0000 (20:35 +0800)
commitaa8b6dd4b06bab62ec7f8972f9e66782dbc23d60
treec557e3efb51b72b0ec3ef7b4e09b1803ca303fdd
parent0c4935b31df0e5ffa6da0f8a2fdfc690d1118ba7
crypto: qat - avoid memory corruption or undefined behaviour

memcopying to a (null pointer + offset) will result
in memory corruption or undefined behaviour.

Signed-off-by: Tudor Ambarus <tudor-dan.ambarus@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_asym_algs.c