mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-15 13:22:55 +00:00
ASoC: Check return value of struct_strtoul() in pmdown_time_set()
strict_strtoul() has just been made must check so do so. Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
89e1e66d6b
commit
c593b520cf
@ -165,8 +165,11 @@ static ssize_t pmdown_time_set(struct device *dev,
|
|||||||
{
|
{
|
||||||
struct snd_soc_pcm_runtime *rtd =
|
struct snd_soc_pcm_runtime *rtd =
|
||||||
container_of(dev, struct snd_soc_pcm_runtime, dev);
|
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;
|
return count;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user