* [PATCH] most: core: Use u32 for coherent_buf_size in most_free_mbo_coherent
@ 2026-03-21 13:20 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2026-03-21 13:20 UTC (permalink / raw)
To: Parthiban Veerasooran, Christian Gromm; +Cc: Thorsten Blum, linux-kernel
Use u32 for 'coherent_buf_size' in most_free_mbo_coherent() to match the
type used in arm_mbo_chain() and to avoid narrowing the sum to u16
before passing it to dma_free().
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
drivers/most/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/most/core.c b/drivers/most/core.c
index c2616da8bceb..92764e5c27c9 100644
--- a/drivers/most/core.c
+++ b/drivers/most/core.c
@@ -100,7 +100,7 @@ static const struct {
static void most_free_mbo_coherent(struct mbo *mbo)
{
struct most_channel *c = mbo->context;
- u16 const coherent_buf_size = c->cfg.buffer_size + c->cfg.extra_len;
+ u32 const coherent_buf_size = c->cfg.buffer_size + c->cfg.extra_len;
if (c->iface->dma_free)
c->iface->dma_free(mbo, coherent_buf_size);
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-03-21 13:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-21 13:20 [PATCH] most: core: Use u32 for coherent_buf_size in most_free_mbo_coherent Thorsten Blum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.