Skip to contentSkip to conversation

ALSA: hda: Abort capability probe on invalid capability

PATCH Superseded Ughreja, Rakesh A 1 participant 1 message Oct 18, 2017 Sound

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: hda: Abort capability probe on invalid capability

From: Rakesh Ughreja <[email protected]>

When an invalid capability is discovered, stop traversing the capability link list further.

print the invalid capability error and set it to zero

---
 sound/hda/hdac_controller.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
sound/hda/hdac_controller.c +2 -1
index 978dc18..8f7d0d9 100644
@@ -314,7 +314,8 @@ int snd_hdac_bus_parse_capabilities(struct hdac_bus *bus)
 			break;
 
 		default:
-			dev_dbg(bus->dev, "Unknown capability %d\n", cur_cap);
+			dev_err(bus->dev, "Unknown capability %d\n", cur_cap);
+			cur_cap = 0;
 			break;
 		}
 
Signature · 1 line
2.7.4