mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
sound: fix check for return value in snd_pcm_hw_refine
'params' is a pointer and looking at the code this probably should be a check for ioctl return value. Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
4f64e15019
commit
8bd9bca3c1
1 changed files with 1 additions and 1 deletions
|
@ -320,7 +320,7 @@ int snd_pcm_hw_refine(struct snd_pcm_substream *substream,
|
|||
snd_mask_max(¶ms->masks[SNDRV_PCM_HW_PARAM_CHANNELS])) {
|
||||
changed = substream->ops->ioctl(substream,
|
||||
SNDRV_PCM_IOCTL1_FIFO_SIZE, params);
|
||||
if (params < 0)
|
||||
if (changed < 0)
|
||||
return changed;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue