crypto: qat - Prevent dma mapping zero length assoc data
authorTadeusz Struk <tadeusz.struk@intel.com>
Tue, 14 Oct 2014 01:24:26 +0000 (18:24 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 24 Oct 2014 14:37:33 +0000 (22:37 +0800)
commit923a6e5e5f171317ac8bb462ac4b814fa7880d3c
tree0ff41bc4f02479cb4d12a9113b80a2616bef0022
parentf114040e3ea6e07372334ade75d1ee0775c355e1
crypto: qat - Prevent dma mapping zero length assoc data

Do not attempt to dma map associated data if it is zero length.

Cc: stable@vger.kernel.org
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Tested-by: Nikolay Aleksandrov <nikolay@redhat.com>
Reviewed-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/qat_algs.c