summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMonika Singh <monising@codeaurora.org>2018-11-22 12:18:34 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2018-12-03 21:10:44 -0800
commitcc5c7e1c96f6408e18cbd791d626de2eea7d88ee (patch)
treea8db7576198906111124955ec4a6a04a17e3c120 /drivers
parent7daef91bee21338b504ddd8290e1133faef42c43 (diff)
ARM: dts: msm: Remove Out-Of-Bound access
Remove the out of bound access vulnerability in the qce driver reachable via ioctl. Change-Id: I4320cd27334eaae975f4a6ad07fb7b2e5ebccffd Signed-off-by: Monika Singh <monising@codeaurora.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/crypto/msm/qcedev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/crypto/msm/qcedev.c b/drivers/crypto/msm/qcedev.c
index 953159c66159..425fd6b4b9f5 100644
--- a/drivers/crypto/msm/qcedev.c
+++ b/drivers/crypto/msm/qcedev.c
@@ -1173,8 +1173,7 @@ static int qcedev_vbuf_ablk_cipher_max_xfer(struct qcedev_async_req *areq,
goto exit;
}
- k_align_dst += creq->vbuf.dst[dst_i].len +
- byteoffset;
+ k_align_dst += creq->vbuf.dst[dst_i].len;
creq->data_len -= creq->vbuf.dst[dst_i].len;
dst_i++;
} else {