crypto/dpaa2_sec: add check for segmented buffer
authorAlok Makhariya <alok.makhariya@nxp.com>
Fri, 13 Oct 2017 15:38:54 +0000 (21:08 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 25 Oct 2017 16:10:15 +0000 (18:10 +0200)
commit9b0b95a48c0e171454cfca4231cecac7d470a75c
tree0958be6495e798d3b6fded011ddcd0c2e05d9a06
parentcf6f70eea4cbe7ab79e4132cb25fb948cd379318
crypto/dpaa2_sec: add check for segmented buffer

The code would crash for segmented buffer if no check.

Fixes: 8d1f3a5d751b ("crypto/dpaa2_sec: support crypto operation")
Cc: stable@dpdk.org
Signed-off-by: Alok Makhariya <alok.makhariya@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c