ALSA: pcm: potential uninitialized return values
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Mar 2018 13:07:52 +0000 (16:07 +0300)
committerTakashi Iwai <tiwai@suse.de>
Tue, 27 Mar 2018 13:20:19 +0000 (15:20 +0200)
commit5607dddbfca774fb38bffadcb077fe03aa4ac5c6
tree9401e09e47c8398b1c9d302399fe339161cda506
parent9066ae7ff5d89c0b5daa271e2d573540097a94fa
ALSA: pcm: potential uninitialized return values

Smatch complains that "tmp" can be uninitialized if we do a zero size
write.

Fixes: 02a5d6925cd3 ("ALSA: pcm: Avoid potential races between OSS ioctls and read/write")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/oss/pcm_oss.c