Skip to content
Commit 1662591b authored by Takashi Iwai's avatar Takashi Iwai
Browse files

ALSA: pcm - Avoid GFP_ATOMIC in snd_pcm_link()



GFP_ATOMIC is used in snd_pcm_link() just because the kmalloc is
called inside a lock.  Since this function isn't too critical for
speed and is rarely called in practice, better to allocate the chunk
at first before spinlock and free it in error paths, so that
GFP_KERNEL can be used.

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