From: Takashi Iwai Date: Tue, 13 Mar 2012 14:55:43 +0000 (+0100) Subject: ALSA: pcm - Avoid GFP_ATOMIC in snd_pcm_link() X-Git-Tag: v3.4-rc1~144^2~3^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1662591b2e6876b8bc041cd48837ccd297c2028f;p=pandora-kernel.git 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: Takashi Iwai --- Reading git-diff-tree failed