summaryrefslogtreecommitdiff
path: root/net/qrtr
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2021-03-12 09:12:48 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-30 14:31:58 +0200
commit6d3635ed12e780375857cbd80d2b46229443c669 (patch)
tree54b9984773e5b21cffe202879e5caa6c7db20ade /net/qrtr
parent1701bd22b05d772cfd1a3fac15d4e00b57215c87 (diff)
net: ipa: terminate message handler arrays
[ Upstream commit 3a9ef3e11c5d33e5cb355b4aad1a4caad2407541 ] When a QMI handle is initialized, an array of message handler structures is provided, defining how any received message should be handled based on its type and message ID. The QMI core code traverses this array when a message arrives and calls the function associated with the (type, msg_id) found in the array. The array is supposed to be terminated with an empty (all zero) entry though. Without it, an unsupported message will cause the QMI core code to go past the end of the array. Fix this bug, by properly terminating the message handler arrays provided when QMI handles are set up by the IPA driver. Fixes: 530f9216a9537 ("soc: qcom: ipa: AP/modem communications") Reported-by: Sujit Kautkar <sujitka@chromium.org> Signed-off-by: Alex Elder <elder@linaro.org> Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/qrtr')
0 files changed, 0 insertions, 0 deletions