diff options
author | Takashi Iwai <tiwai@suse.de> | 2012-03-13 15:55:43 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-03-15 07:36:00 +0100 |
commit | 1662591b2e6876b8bc041cd48837ccd297c2028f (patch) | |
tree | fdb4c9be9d073cb057af0571449c984730d8f75f /sound/usb | |
parent | ALSA: pcm: Constify the list in snd_pcm_hw_constraint_list (diff) | |
download | linux-1662591b2e6876b8bc041cd48837ccd297c2028f.tar.xz linux-1662591b2e6876b8bc041cd48837ccd297c2028f.zip |
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 <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
0 files changed, 0 insertions, 0 deletions