Merge "soc: qcom: hab: sizebytes needs to be compared with buf size"

This commit is contained in:
qctecmdr 2024-05-24 20:48:04 -07:00 committed by Gerrit - the friendly Code Review server
commit a8f403bf2e

View file

@ -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,