ALSA: pcm: potential uninitialized return values
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Mar 2018 13:07:52 +0000 (16:07 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Apr 2018 10:12:41 +0000 (12:12 +0200)
commit43320b2902ab09647bab768ba00fbfdee14b66b6
tree0d0f71a6de6cb4a277adee98e361e247865cfb51
parentd5a2bcb8db37ba9b9502dd94c646ef36ad6a2ef7
ALSA: pcm: potential uninitialized return values

commit 5607dddbfca774fb38bffadcb077fe03aa4ac5c6 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/core/oss/pcm_oss.c