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:
89e1e66
)
ASoC: Check return value of struct_strtoul() in pmdown_time_set()
author
Mark Brown
<
[email protected]
>
Thu, 28 Oct 2010 03:11:17 +0000
(20:11 -0700)
committer
Mark Brown
<
[email protected]
>
Thu, 28 Oct 2010 18:12:35 +0000
(11:12 -0700)
strict_strtoul() has just been made must check so do so.
Signed-off-by: Mark Brown <
[email protected]
>
Acked-by: Liam Girdwood <
[email protected]
>
sound/soc/soc-core.c
patch
|
blob
|
history
diff --git
a/sound/soc/soc-core.c
b/sound/soc/soc-core.c
index 70d9a7394b2b35fde32e812108dadf86031a95c0..805343fe903be180af6a9496606119c7ec594666 100644
(file)
--- a/
sound/soc/soc-core.c
+++ b/
sound/soc/soc-core.c
@@
-165,8
+165,11
@@
static ssize_t pmdown_time_set(struct device *dev,
{
struct snd_soc_pcm_runtime *rtd =
container_of(dev, struct snd_soc_pcm_runtime, dev);
+ int ret;
- strict_strtol(buf, 10, &rtd->pmdown_time);
+ ret = strict_strtol(buf, 10, &rtd->pmdown_time);
+ if (ret)
+ return ret;
return count;
}