From f8b37816a47210391b21abf739dc7b16e33b21e2 Mon Sep 17 00:00:00 2001 From: Zelong Ren Date: Thu, 23 May 2024 17:02:59 +0800 Subject: [PATCH] soc: qcom: hab: sizebytes needs to be compared with buf size sizebytes needs to be compared to OUT_MEDIUM_BUF_SIZE, not OUT_MEDIUM_BUF_NUM. Change-Id: I9cb15a9f1ea39b4f26c9d85a0784eec9d78d9508 Signed-off-by: Zelong Ren --- drivers/soc/qcom/hab/hab_virtio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/soc/qcom/hab/hab_virtio.c b/drivers/soc/qcom/hab/hab_virtio.c index acd8e2903a36..5254033b5ca3 100644 --- a/drivers/soc/qcom/hab/hab_virtio.c +++ b/drivers/soc/qcom/hab/hab_virtio.c @@ -979,7 +979,7 @@ int physical_channel_send(struct physical_channel *pchan, &lock_flags, &vpc->s_list, &vpc->out_wq, &vpc->s_cnt, nonblocking_flag); - } else if (sizebytes <= OUT_MEDIUM_BUF_NUM) { + } else if (sizebytes <= OUT_MEDIUM_BUF_SIZE) { hd = get_vh_buf_header(&vpc->lock[HAB_PCHAN_TX_VQ], &lock_flags, &vpc->m_list, &vpc->out_wq, &vpc->m_cnt,