msm: ipa: fix ipacm_client usage
Fix the access to ipacm_client array. Change-Id: I0e6c026a4f6eb0bc21f4e07cb301e21f78103f33 CRs-Fixed: 2024177 Acked-by: Ady Abraham <adya@qti.qualcomm.com> Signed-off-by: Skylar Chang <chiaweic@codeaurora.org>
This commit is contained in:
parent
959abd171b
commit
fbb64f5e0a
2 changed files with 10 additions and 0 deletions
|
@ -1008,6 +1008,11 @@ enum ipacm_client_enum ipa2_get_client(int pipe_idx)
|
|||
*/
|
||||
bool ipa2_get_client_uplink(int pipe_idx)
|
||||
{
|
||||
if (pipe_idx < 0 || pipe_idx >= IPA_MAX_NUM_PIPES) {
|
||||
IPAERR("invalid pipe idx %d\n", pipe_idx);
|
||||
return false;
|
||||
}
|
||||
|
||||
return ipa_ctx->ipacm_client[pipe_idx].uplink;
|
||||
}
|
||||
|
||||
|
|
|
@ -1064,6 +1064,11 @@ enum ipacm_client_enum ipa3_get_client(int pipe_idx)
|
|||
*/
|
||||
bool ipa3_get_client_uplink(int pipe_idx)
|
||||
{
|
||||
if (pipe_idx < 0 || pipe_idx >= IPA3_MAX_NUM_PIPES) {
|
||||
IPAERR("invalid pipe idx %d\n", pipe_idx);
|
||||
return false;
|
||||
}
|
||||
|
||||
return ipa3_ctx->ipacm_client[pipe_idx].uplink;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue