ALSA: line6: Zero-initialize message buffers
authorTakashi Iwai <tiwai@suse.de>
Tue, 2 Apr 2024 06:36:25 +0000 (08:36 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 09:50:53 +0000 (11:50 +0200)
commit9a41f5e19f27e92f3e9b79898125cf9b76c4fff2
treeb0f9b1eedadef61c1567768f6191632b01c262b4
parentd1b93d4017c40442e250a5edff1593df80d7bd8d
ALSA: line6: Zero-initialize message buffers

[ Upstream commit c4e51e424e2c772ce1836912a8b0b87cd61bc9d5 ]

For shutting up spurious KMSAN uninit-value warnings, just replace
kmalloc() calls with kzalloc() for the buffers used for
communications.  There should be no real issue with the original code,
but it's still better to cover.

Reported-by: syzbot+7fb05ccf7b3d2f9617b3@syzkaller.appspotmail.com
Closes: https://lore.kernel.org/r/00000000000084b18706150bcca5@google.com
Message-ID: <20240402063628.26609-1-tiwai@suse.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/usb/line6/driver.c