aboutsummaryrefslogtreecommitdiff
path: root/include/linux/debugobjects.h
diff options
context:
space:
mode:
authorKim Phillips <[email protected]>2012-06-22 19:42:38 -0500
committerHerbert Xu <[email protected]>2012-06-27 14:42:03 +0800
commit991c569c5df68609b24a0aba5e5fd4879225c4cf (patch)
treea1d6177be775cd45fc8e7dc682892d262c8b97a1 /include/linux/debugobjects.h
parentc4b664063ea5c007f05d2d23aa6edc9cfd385aa3 (diff)
crypto: caam - fix descriptor length adjustments for protocol descriptors
init_desc, by always ORing with 1 for the descriptor header inclusion into the descriptor length, and init_sh_desc_pdb, by always specifying the descriptor length modification for the PDB via options, would not allow for odd length PDBs to be embedded in the constructed descriptor length. Fix this by simply changing the OR to an addition. also round-up pdb_bytes to the next SEC command unit size, to allow for, e.g., optional packet header bytes that aren't a multiple of CAAM_CMD_SZ. Reported-by: Radu-Andrei BULIE <[email protected]> Signed-off-by: Kim Phillips <[email protected]> Cc: Yashpal Dutta <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions