crypto/dpaa_sec: add check for segmented buffer
authorAlok Makhariya <alok.makhariya@nxp.com>
Fri, 13 Oct 2017 15:37:30 +0000 (21:07 +0530)
committerPablo de Lara <pablo.de.lara.guarch@intel.com>
Wed, 25 Oct 2017 16:10:15 +0000 (18:10 +0200)
commitcf6f70eea4cbe7ab79e4132cb25fb948cd379318
tree906876f8ba65c0cdd4a09bcf0bc529dc9d639ed5
parent6d93f7cff0d39022be86f69fae4b9eb7ffcd3e1d
crypto/dpaa_sec: add check for segmented buffer

The code would crash in case of segmented buffer if no check

Fixes: c3e85bdcc6e6 ("crypto/dpaa_sec: add crypto driver for NXP DPAA platform")

Signed-off-by: Alok Makhariya <alok.makhariya@nxp.com>
Acked-by: Akhil Goyal <akhil.goyal@nxp.com>
drivers/crypto/dpaa_sec/dpaa_sec.c