mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] soundwire: Fix bandwidth leak in multi-link aggregation failure
@ 2026-11-02  6:04 Bard Liao
  2026-11-02  6:04 ` [PATCH 1/2] soundwire: move lane bandwidth into bus params Bard Liao
  2026-11-02  6:04 ` [PATCH 2/2] soundwire: stream: Fix bandwidth leak in multi-link aggregation failure Bard Liao
  0 siblings, 2 replies; 3+ messages in thread
From: Bard Liao @ 2026-11-02  6:04 UTC (permalink / raw)
  To: linux-sound, vkoul
  Cc: vinod.koul, linux-kernel, pierre-louis.bossart, peter.ujfalusi,
	bard.liao, david.lin

The existing code only copies the params from the first link to the
bus params, but it doesn't copy the bandwidth from the other links.
This can lead to a bandwidth leak when multi-link aggregation fails.
Fix this by saving a snapshot of each bus's parameters before making
any modifications.

Bard Liao (1):
  soundwire: move lane bandwidth into bus params

David Lin (1):
  soundwire: stream: Fix bandwidth leak in multi-link aggregation
    failure

 drivers/soundwire/bus.h                       |  3 +++
 .../soundwire/generic_bandwidth_allocation.c  |  8 +++----
 drivers/soundwire/stream.c                    | 21 +++++++++++++------
 include/linux/soundwire/sdw.h                 |  4 ++--
 4 files changed, 24 insertions(+), 12 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-02  6:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-02  6:04 [PATCH 0/2] soundwire: Fix bandwidth leak in multi-link aggregation failure Bard Liao
2026-11-02  6:04 ` [PATCH 1/2] soundwire: move lane bandwidth into bus params Bard Liao
2026-11-02  6:04 ` [PATCH 2/2] soundwire: stream: Fix bandwidth leak in multi-link aggregation failure Bard Liao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®