ALSA: hda: Abort capability probe on invalid capability
PATCH v3 1/1 ALSA: hda: Abort capability probe on invalid capability
On reading wrong capability pointer values driver may crash, so whenever driver discovers unknown HDA capability, log it as error and stop traversing the link list further.
Signed-off-by Rakesh Ughreja <[email protected]>
--- sound/hda/hdac_controller.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
sound/hda/hdac_controller.c +2 -1
@@ -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
Quoted 3 lines · Rakesh Ughreja
On reading wrong capability pointer values driver may crash, so whenever driver discovers unknown HDA capability, log it as error and stop traversing the link list further.
Acked-by Vinod Koul <[email protected]>
Quoted 22 lines
Signed-off-by Rakesh Ughreja <[email protected]>--- sound/hda/hdac_controller.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)sound/hda/hdac_controller.c +2
-1@@ -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
Signature · 1 line
~Vinod
Takashi Iwai
AppliedQuoted 6 lines · Rakesh Ughreja
On reading wrong capability pointer values driver may crash, so whenever driver discovers unknown HDA capability, log it as error and stop traversing the link list further.
Signed-off-by Rakesh Ughreja <[email protected]>
Applied, thanks.
Takashi