diff options
author | Cyrille Pitchen <cyrille.pitchen@atmel.com> | 2016-01-15 17:49:31 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-01-25 17:42:06 +0300 |
commit | 1900c583c8e24df9d07282598166279187dce832 (patch) | |
tree | 209725373318a6f72f1b5eac6d5f3e5c18f46809 /drivers/usb/musb | |
parent | 952bce9792e6bf36fda09c2e5718abb5d9327369 (diff) | |
download | linux-1900c583c8e24df9d07282598166279187dce832.tar.xz |
crypto: atmel-sha - fix crash when computing digest on empty message
This patch fixes a crash which occured during the computation of the
digest of an empty message.
Indeed, when processing an empty message, the atmel_sha_handle_queue()
function was never called, hence the dd->req pointer remained
uninitialized.
Later, when the atmel_sha_final_req() function was called, it used
to crash while using this uninitialized dd->req pointer.
Hence this patch adds missing initializations of dd->req before calls of
the atmel_sha_final_req() function.
This bug prevented us from passing the tcrypt test suite on SHA algo.
Signed-off-by: Cyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/usb/musb')
0 files changed, 0 insertions, 0 deletions