ALSA: hda: Abort capability probe on invalid capability
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.
--- 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); + cur_cap =0 ; +dev_err (bus->dev,"Unknown capability %d\n" , cur_cap);break ; }
Signature · 1 line
2.7.4
Quoted 5 lines · Rakesh A
From: Rakesh Ughreja <[email protected]>
When an invalid capability is discovered, stop traversing the capability link list further.
Could you give more background, especially *why* we change that? It's almost clear what the patch does by looking at the change, but it's not clear why it is needed.
thanks,
Takashi
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); + cur_cap =0 ; +dev_err (bus->dev,"Unknown capability %d\n" , cur_cap);break ; }Signature · 1 line
2.7.4
Quoted 12 lines
-----Original Message-----
From: Takashi Iwai [mailto:[email protected]]
Sent: Wednesday, October 18, 2017 3:50 PM
To: Ughreja, Rakesh A <[email protected]>
Cc: [email protected]; Koul, Vinod <[email protected]>
Subject: Re: [PATCH] ALSA: hda: Abort capability probe on invalid capabilityQuoted 1 line · Rakesh A
Quoted 8 lines
Quoted 4 lines
From: Rakesh Ughreja <[email protected]>
When an invalid capability is discovered, stop traversing the capability link list further.
Could you give more background, especially *why* we change that? It's almost clear what the patch does by looking at the change, but it's not clear why it is needed.
Is the following description in patch okay for you ?
Due to bugs in BIOS it's possible that the HDA capability link list is not constructed properly. This may lead to driver going into unknown state. So whenever driver discovers unknown HDA capability, log it as error and stop traversing the link list further.
Regards,
Rakesh
Quoted 22 lines · Rakesh A
Quoted 13 lines
-----Original Message-----
From: Takashi Iwai [mailto:[email protected]]
Sent: Wednesday, October 18, 2017 3:50 PM
To: Ughreja, Rakesh A <[email protected]>
Cc: [email protected]; Koul, Vinod <[email protected]>
Subject: Re: [PATCH] ALSA: hda: Abort capability probe on invalid capabilityQuoted 1 line · Rakesh A
Quoted 8 lines
Quoted 4 lines
From: Rakesh Ughreja <[email protected]>
When an invalid capability is discovered, stop traversing the capability link list further.
Could you give more background, especially *why* we change that? It's almost clear what the patch does by looking at the change, but it's not clear why it is needed.
Quoted 6 lines
Is the following description in patch okay for you ?
Due to bugs in BIOS it's possible that the HDA capability link list is not constructed properly. This may lead to driver going into unknown state. So whenever driver discovers unknown HDA capability, log it as error and stop traversing the link list further.
Yes, looks good.
thanks,
Takashi