summaryrefslogtreecommitdiff
path: root/drivers/crypto/fsl/jobdesc.h
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-07-02 19:56:34 +0200
committerPatrick Delaunay <patrick.delaunay@st.com>2020-07-07 16:01:23 +0200
commit1a5be5a416e21fe243141d079f30a5e50bf6e332 (patch)
tree825e6ff7b59a09b454da1a50596281a222c01f5b /drivers/crypto/fsl/jobdesc.h
parentc16cba88bd469353b0f6265e1f507200f20e3d6d (diff)
ram: stm32mp1: protect minimum value in get_bufsize
Add protection on minimum value for result of get_bufsize and check the alignment of buffer size: only multiple min_size is allowed; only 4 bytes alignment was checked previously (value & 0x3). For example the "Random" test raises an issue when size is not 8 bytes aligned because address for buffer = address + size / 2 is not word aligned. This patch avoid test error for unsupported size value. Reviewed-by: Patrice Chotard <patrice.chotard@st.com> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
Diffstat (limited to 'drivers/crypto/fsl/jobdesc.h')
0 files changed, 0 insertions, 0 deletions