Skip to content
Commit 2843421e authored by Kaushal Hooda's avatar Kaushal Hooda
Browse files

rpmsg: slatecom: Discard unaligned packet to read


If intent_alloc_size and chunk size are unaligned with the minimum offset,
then ahb_read can lead to bytes overflow as ahb_read is performed
with word_size aligned.

If the received chunk_size is not aligned to word_size, discard packet
to read.

Change-Id: I36fabc8bde22355de1ae32cb026a2a246778d47e
Signed-off-by: default avatarKaushal Hooda <quic_khooda@quicinc.com>
parent b76665f4
Please register or to comment