Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8bd9bca3 authored by Mariusz Kozlowski's avatar Mariusz Kozlowski Committed by Takashi Iwai
Browse files

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: default avatarMariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 4f64e150
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -320,7 +320,7 @@ int snd_pcm_hw_refine(struct snd_pcm_substream *substream,
                    snd_mask_max(&params->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;
		}
	}