OSDN Git Service

mailbox: qcom-ipcc: fix incorrect num_chans counting
authorJonathan Marek <jonathan@marek.ca>
Wed, 2 Aug 2023 13:52:22 +0000 (09:52 -0400)
committerJassi Brar <jaswinder.singh@linaro.org>
Tue, 5 Sep 2023 15:11:01 +0000 (10:11 -0500)
commita493208079e299aefdc15169dc80e3da3ebb718a
tree5f30b229679c46a998f7795b35ce2be8052b69cc
parente9803aac5097ac74186b074d3176318fd10ec98c
mailbox: qcom-ipcc: fix incorrect num_chans counting

Breaking out early when a match is found leads to an incorrect num_chans
value when more than one ipcc mailbox channel is used by the same device.

Fixes: e9d50e4b4d04 ("mailbox: qcom-ipcc: Dynamic alloc for channel arrangement")
Signed-off-by: Jonathan Marek <jonathan@marek.ca>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
drivers/mailbox/qcom-ipcc.c