summaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-09-01 15:18:02 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-09-09 19:04:30 +0200
commit569e1b621797a9cdba8369f45fc5612ce1bec323 (patch)
treec79e7d13245740698cb542d0818a008a35635e7d /sound/pci
parenta69e790bce633b69759817cc53d22e0c8ab1c657 (diff)
downloadlinux-stable-569e1b621797a9cdba8369f45fc5612ce1bec323.tar.gz
linux-stable-569e1b621797a9cdba8369f45fc5612ce1bec323.tar.bz2
linux-stable-569e1b621797a9cdba8369f45fc5612ce1bec323.zip
ALSA: pcm: oss: Remove superfluous WARN_ON() for mulaw sanity check
commit 949a1ebe8cea7b342085cb6a4946b498306b9493 upstream. The PCM OSS mulaw plugin has a check of the format of the counter part whether it's a linear format. The check is with snd_BUG_ON() that emits WARN_ON() when the debug config is set, and it confuses syzkaller as if it were a serious issue. Let's drop snd_BUG_ON() for avoiding that. While we're at it, correct the error code to a more suitable, EINVAL. Reported-by: syzbot+23b22dc2e0b81cbfcc95@syzkaller.appspotmail.com Cc: <stable@vger.kernel.org> Link: https://lore.kernel.org/r/20200901131802.18157-1-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions