Skip to content
Snippets Groups Projects
Commit ef4db239 authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: rawmidi: Use kvmalloc() for buffers


The size of in-kernel rawmidi buffers may be big up to 1MB, and it can
be specified freely by user-space; which implies that user-space may
trigger kmalloc() errors frequently.

This patch replaces the buffer allocation via kvmalloc() for dealing
with bigger buffers gracefully.

Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent f5beb598
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment