projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7881fd0
)
ASoC: wm_adsp: Release firmware on error
author
Charles Keepax
<
[email protected]
>
Mon, 21 Jan 2013 09:02:31 +0000
(09:02 +0000)
committer
Mark Brown
<
[email protected]
>
Tue, 22 Jan 2013 07:40:26 +0000
(16:40 +0900)
This patch correctly releases the firmware if the magic string in the
firmware header does not match.
Signed-off-by: Charles Keepax <
[email protected]
>
Signed-off-by: Mark Brown <
[email protected]
>
sound/soc/codecs/wm_adsp.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/wm_adsp.c
b/sound/soc/codecs/wm_adsp.c
index 4196f2d54967253d154efd36c0867f658b7d0b2f..b6b65483758518f8b8cab7672af882ef923d2768 100644
(file)
--- a/
sound/soc/codecs/wm_adsp.c
+++ b/
sound/soc/codecs/wm_adsp.c
@@
-396,7
+396,7
@@
static int wm_adsp_load_coeff(struct wm_adsp *dsp)
hdr = (void*)&firmware->data[0];
if (memcmp(hdr->magic, "WMDR", 4) != 0) {
adsp_err(dsp, "%s: invalid magic\n", file);
-
return -EINVAL
;
+
goto out_fw
;
}
adsp_dbg(dsp, "%s: v%d.%d.%d\n", file,