]> git.baikalelectronics.ru Git - kernel.git/commit
staging: speakup: use speakup_allocate as per required context
authorPranay Kr. Srivastava <pranjas@gmail.com>
Fri, 24 Mar 2017 08:37:11 +0000 (14:07 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Mar 2017 11:51:32 +0000 (13:51 +0200)
commita7c7bf25c5710332ef056260759c4ef6a7d7d305
tree7cb55cab174bd3db4d0fd0a7b6e00a96fdc97577
parentcbd036412966b0d4c4aabf0648d442315f8312c9
staging: speakup: use speakup_allocate as per required context

speakup_allocate used GFP_ATOMIC for allocations
even while during initialization due to it's use
in notifier call.

Pass GFP_ flags as well to speakup_allocate depending
on the context it is called in.

Signed-off-by: Pranay Kr. Srivastava <pranjas@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/speakup/main.c