[alsa-devel] [PATCH] ALSA: hda: Abort capability probe at invalid register read

Ughreja, Rakesh A rakesh.a.ughreja at intel.com
Tue Oct 17 17:35:18 CEST 2017


>+		if (cur_cap == -1) {
>+			dev_dbg(bus->dev, "Invalid capability reg read\n");
>+			break;
>+		}

Since we already have a default case in the current code, can we use it ?
I am sending you a untested patch, as proposal.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ALSA-hda-Abort-capability-probe-at-invalid-register-.patch
Type: application/octet-stream
Size: 825 bytes
Desc: 0001-ALSA-hda-Abort-capability-probe-at-invalid-register-.patch
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20171017/892571db/attachment.obj>


More information about the Alsa-devel mailing list