Skip to content

soundwire: bus: Prevent infinite loop in sdw_ch_mask_to_ch()

Richard Fitzgerald alsa-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2soundwire: bus: Prevent infinite loop in sdw_ch_mask_to_ch()drivers/soundwire/bus.h+1 -13 replies
2/2soundwire: bandwidth allocation: Use hweight32() to calculate set bitsdrivers/soundwire/bus.h drivers/soundwire/generic_bandwidth_allocation.c+2 -120 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] soundwire: bus: Prevent infinite loop in sdw_ch_mask_to_ch()

sdw_ch_mask_to_ch() would loop forever if bit 31 of the mask was set. The entire function is unnecessary because the existing standard function hweight32() already does the same thing, and hweight32() is safe. But the change has been made in two steps.

Richard Fitzgerald (2):
soundwire: bus: Prevent infinite loop in sdw_ch_mask_to_ch()
soundwire: bandwidth allocation: Use hweight32() to calculate set bits

 drivers/soundwire/bus.h                          | 11 -----------
 drivers/soundwire/generic_bandwidth_allocation.c |  3 ++-
 2 files changed, 2 insertions(+), 12 deletions(-)
Signature · 1 line
2.30.2