Skip to content
Snippets Groups Projects
Commit 7ccf1a2a authored by Yuri Mazzuoli's avatar Yuri Mazzuoli
Browse files

[SOUND][TLV320] fix bug in seco tlv320 driver

we have to free the data structure only if the probe fails, otherwise
a kernel panic occurs:
 "Unable to handle kernel paging request at virtual address 00010041"
parent f27d6d09
No related branches found
No related tags found
1 merge request!95[SOUND][TLV320] fix bug in seco tlv320 driver
......@@ -227,7 +227,7 @@ err:
of_node_put(cpu_np);
if (codec_np)
of_node_put(codec_np);
if (comp)
if (ret && comp)
kfree (comp);
return ret;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment