commit | 2e05c19825fdb030aceaf781335c1672da5506e0 | [log] [tgz] |
---|---|---|
author | Jay Wang <jaywang@codeaurora.org> | Tue Jan 10 20:09:49 2012 -0800 |
committer | Jay Wang <jaywang@codeaurora.org> | Tue Jan 10 20:34:48 2012 -0800 |
tree | e00dc16956e6b8325087d2edb4ac4a876d9144cf | |
parent | ffc09b846281d3c217388310a015a99e797c9efe [diff] |
ASoC: dsp: validate widget list pointer before using it There is a possiblity that the number of valid path is greater than 0 even though widget list is completely empty. This condition causes the data abort in dsp_add_new_paths(). Fix the issue by exiting the function when widget list is empty. Change-Id: I161e87f2eba61ac383fe83641206652b9cf217f7 CRs-fixed: 329351 Signed-off-by: Jay Wang <jaywang@codeaurora.org>