goldfish_pipe: use GFP_ATOMIC under spin lock
authorWei Yongjun <weiyongjun1@huawei.com>
Sun, 21 May 2017 00:45:46 +0000 (00:45 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 16:26:11 +0000 (18:26 +0200)
commit3eff8ecd271d941b2326dba7defd0ca7c4c0baf5
tree4272add2f2017fdf83bb482d87400a2771905638
parent2ee1cc70552e5520a275254427c0c37fc81728d2
goldfish_pipe: use GFP_ATOMIC under spin lock

The function get_free_pipe_id_locked() is called from
goldfish_pipe_open() with a lock is held, so we should
use GFP_ATOMIC instead of GFP_KERNEL.

Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c