summaryrefslogtreecommitdiff
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-11-09 11:59:45 +0100
committerTakashi Iwai <tiwai@suse.de>2018-11-09 14:12:04 +0100
commit65766ee0bf7fe8b3be80e2e1c3ef54ad59b29476 (patch)
tree623d81067b0f9179871d1d64040faadffb4ec7ff /sound/pci/hda/patch_realtek.c
parent5e93a125f521efd00d71af31c2a301f3d46af48c (diff)
ALSA: oss: Use kvzalloc() for local buffer allocations
PCM OSS layer may allocate a few temporary buffers, one for the core read/write and another for the conversions via plugins. Currently both are allocated via vmalloc(). But as the allocation size is equivalent with the PCM period size, the required size might be quite small, depending on the application. This patch replaces these vmalloc() calls with kvzalloc() for covering small period sizes better. Also, we use "z"-alloc variant here for addressing the possible uninitialized access reported by syzkaller. Reported-by: syzbot+1cb36954e127c98dd037@syzkaller.appspotmail.com Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
0 files changed, 0 insertions, 0 deletions