ALSA: core: check for underflow in snd_pcm_sw_params()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 23 Sep 2015 09:42:28 +0000 (12:42 +0300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Sep 2015 09:46:25 +0000 (11:46 +0200)
commit145d92e77e6f34f53773fdb06789816ec2b6c7b3
tree4c0ac01ee00cc28a07d8e67c7de643b90623b435
parent13f3a46d2a6cbdff1bbb06fac6de7dce753db8e1
ALSA: core: check for underflow in snd_pcm_sw_params()

As far as I can see, having an invalid ->tstamp_mode is harmless, but
adding a check silences a static checker warning.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c