diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-05-15 07:30:23 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-05-15 07:30:23 +0200 |
commit | 8def12d9cd45b6abad87c5dc5a88a18c739762be (patch) | |
tree | 232020665442fb2c8bd55f4878c1735535dfd8a7 /sound/core/pcm_compat.c | |
parent | ALSA: hda/ca0132: fix array_size.cocci warnings (diff) | |
parent | ALSA: usb-audio: Use Class Specific EP for UAC3 devices. (diff) | |
download | linux-dev-8def12d9cd45b6abad87c5dc5a88a18c739762be.tar.xz linux-dev-8def12d9cd45b6abad87c5dc5a88a18c739762be.zip |
Merge branch 'for-linus' into for-next
Back-merge of UAC3 fixes for applying further enhancements.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/core/pcm_compat.c')
-rw-r--r-- | sound/core/pcm_compat.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/core/pcm_compat.c b/sound/core/pcm_compat.c index 077008a8e1d5..39d853bfa5ac 100644 --- a/sound/core/pcm_compat.c +++ b/sound/core/pcm_compat.c @@ -417,6 +417,8 @@ static int snd_pcm_ioctl_xfern_compat(struct snd_pcm_substream *substream, return -ENOTTY; if (substream->stream != dir) return -EINVAL; + if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) + return -EBADFD; if ((ch = substream->runtime->channels) > 128) return -EINVAL; |