]> 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)
commitd1b9deb8bd0bdbab7fc9fcdb0a409748318cbb21
tree7cb55cab174bd3db4d0fd0a7b6e00a96fdc97577
parent932cb8c0c95d991a7741a1298e6c906d25b5db0c
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