diff --git a/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c b/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c index b07fc3554ef5..43884914263e 100644 --- a/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c +++ b/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa_debugfs.c @@ -1398,6 +1398,11 @@ static ssize_t ipa3_read_odlstats(struct file *file, char __user *ubuf, int nbytes; int cnt = 0; + if (!ipa3_odl_ctx) { + IPADBG("ODL stats not supported\n"); + return 0; + } + nbytes = scnprintf(dbg_buff, IPA_MAX_MSG_LEN, "ODL received pkt =%u\n" "ODL processed pkt to DIAG=%u\n" diff --git a/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c b/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c index 3d829bedd7c4..53d0644578b4 100644 --- a/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c +++ b/techpack/dataipa/drivers/platform/msm/ipa/ipa_v3/ipa_dp.c @@ -2,6 +2,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2012-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #include @@ -2146,8 +2147,8 @@ begin: goto fail_kmem_cache_alloc; rx_pkt = ipa3_alloc_rx_pkt_page(GFP_KERNEL, true); if (unlikely(!rx_pkt)) { - IPAERR("ipa3_alloc_rx_pkt_page fails\n"); - break; + IPAERR_RL("ipa3_alloc_rx_pkt_page fails\n"); + goto fail_kmem_cache_alloc; } rx_pkt->sys = sys; sys->repl->cache[curr] = rx_pkt;